Information Technology Reference
In-Depth Information
Mark's work can be fetched by John with the following command:
# command issued in johns-repo
$ git fetch
This command will transform the repositories shown in Figure 10-26 into the form
shown in Figure 10-27 .
Figure 10-27 . John's repo after his $ git fetch command
When John's repository is in the state shown in Figure 10-27 , then the $ git
status -sb command prints:
## master...origin/master [behind 2]
Therefore, John's master branch misses two revisions included in his origin/
master branch. John can fast-forward his branch with the following command:
# command issued in johns-repo
$ git rebase
The repository shown in Figure 10-27 is transformed with John's $ git rebase
command into the state shown in Figure 10-28 . The history of all repositories is linear.
 
 
 
Search WWH ::




Custom Search