Information Technology Reference
In-Depth Information
The work is initialized by one of the developers. Let it be John. He initializes his re-
pository:
# john's commands in git-recipes/10-05 directory
$ git init johns-repo
Then he sets his personal data:
# john's commands
$ cd johns-repo
$ git config --local user.name john
$ git config --local user.email john@example.net
and commits:
# john's command
$ git simple-commit j1 j2 j3
Now Sarah enters the project. She clones johns-repo and configures her person-
al information:
# sarah's commands
# executed in git-recipes/10-05
$ git clone johns-repo sarahs-repo
$ cd sarahs-repo
$ git config --local user.name sarah
$ git config --local user.email sarah@example.net
Next Sarah contributes to the project with two revisions s1 and s2 :
# sarah's command
$ git simple-commit s1 s2
When the commits are ready to be fetched, Sarah emails John about her s1 s2 re-
visions. To get them John needs to set up the remote repository and the local tracking
branch. John runs:
# john's command
$ git remote add origin ../sarahs-repo
Search WWH ::




Custom Search