Developer 1:
Developer 2:
Developer 1:
</code> 2. Versioning.
git add .
This will add current folder recursively. If one of the sub-folder contains .git, this folder will be add to repo as submodule. More about submodule <…
>.
git commit -a -m "message"
T
his will commit all changes to local git manifest. 3. Share project. Push project back to central repository.
git push origin master
This will copy working branch to central repo. To get info about the alias use:
git remote -v origin https://thuydang.de@code.google.com/p/tdinfra/ (fetch) origin https://thuydang.de@code.google.com/p/tdinfra/ (push)
To see all branches:
git branch *master other_branch
'master' is the working branch. The push command above will push the master branch to google code.
Developer 2: 4. Download project
git clone ...
The project must be downloaded as a whole. No downloading of single sub folder possible.
to see the deleted files so they can be copied later:
git ls-files -d
undelete file:
git checkout -- /path/to/file