Information Technology Reference
In-Depth Information
Then the two other developers create their repositories with:
# commands issued in git-recipes/10-03 directory
$ git clone shared-repo sarahs-repo
$ git clone shared-repo peters-repo
Now, all of the developers are ready to commit. In this recipe all of the developers
work in parallel. Every one of them creates his or her commits:
# command issued in johns-repo
$ git simple-commit "The first commit by John"
# command issued in sarahs-repo
$ git simple-commit "The first commit by Sara"
# command issued in peters-repo
$ git simple-commit "The first commit by Peter"
Now, they want to share their work.
John is the first to push his changes to the central repository:
# command issued in johns-repo
$ git push origin master
and then Sarah and Peter pull their work:
# command issued in sarahs-repo
$ git pull --edit origin master
# command issued in peters-repo
$ git pull --edit origin master
They both enter the merge message. Sarah types "Sarah merges..." , and
Peter types "Peter merges..." .
Now, Sarah pushes her work with:
# command issued in sarahs-repo
$ git push origin master
Search WWH ::




Custom Search