Let’s take a moment to visualize what happens during
pull operations. A few
pictures should also clarify the often confusing uses of the same name
in different contexts.
Let’s start with the simple repository shown in Figure 11-1 as the basis for discussion.
Figure 11-1. Simple repository with commits
As with all of our commit graphs, the sequence of commits flows
from left to right and the
master label points to the
HEAD of the branch. The two most recent commits are
B. Let’s follow
these two commits, introduce a few more, and watch what occurs.
A git clone command yields two separate repositories, as shown in Figure 11-2.
Figure 11-2. Cloned repository
This picture illustrates some important results of the clone operation:
All the commits from the original repository are copied to your clone; you could now easily retrieve earlier stages of the project from your own repository.
The development branch named
master from the original repository is
introduced into your clone on a new tracking
Within the new clone repository, the new
origin/master branch is initialized to point to
B in the figure.
A new development branch called
master is created in your ...