Information Technology Reference
In-Depth Information
Figure 10-28 . John's repo after his $ git rebase command
How It Works
Git fetch command performs two operations:
• It copies the objects from a remote database to a local one.
• It updates remote tracking branches.
It doesn't update the local tracking branches, however. There are two interesting
cases:
• When after the command $ git fetch is run, local branches can be
updated in a fast-forward mode.
• When after the command $ git fetch is run, local branches are di-
verged.
When executed in the repository johns-repo shown in Figure 10-26 , the $ git
fetch command would give the effect shown in Figure 10-27 . This is a fast-forward
case. In this case the $ git status -sb command prints:
## master...origin/master [behind 2]
 
Search WWH ::




Custom Search