Monday, August 15, 2016

git (repo) init

Initialize the local directory as a Git repository.

git init

Add the files in your new local repository. This stages them for the first commit.

git add .

Commit the files that you've staged in your local repository.

git commit -s

In Terminal, add the URL for the remote repository where your local repository will be pushed.
git remote add origin ebmajor@github.com:peter.oh/hmd_service.git

git remote -v

Push the changes in your local repository to GitHub.
git push origin master

run repo sync with git --recursive option

1. in manifest, specify the attribute sync-s="true"
for example <default sync-s="true"/> to apply to all projects
or for a specific project, <project sync-s="true"/>
2. repo sync --fetch-submodules

No comments:

Post a Comment