Information Technology Reference
In-Depth Information
the current branch master . All repositories are clean and the branches are synchron-
ized. The state of all repositories is shown in Figure 10-20 .
Figure 10-20 . Initial state of all three repositories in Recipe 10-4
John and Mark work in parallel
John and Mark are working in parallel. John creates three commits j1 , j2 , j3 and
Mark creates two commits m1 , m2 :
# command issued in johns-repo
$ git simple-commit j1 j2 j3
# command issued in marks-repo
$ git simple-commit m1 m2
Right now, the command executed in John's repo:
# command issued in johns-repo
$ git status -sb
prints the following information:
## master...origin/master [ahead 3]
It means that John's master branch contains three revisions that are not included
in his origin/master tracking branch. The same command executed in Mark's re-
pository:
# command issued in marks-repo
$ git status -sb
outputs:
 
 
Search WWH ::




Custom Search