Chapter 11. Cloning

Cloning, the act of making a physical copy of a Git repository, is the first step in collaborating with others. You’ll be covering collaboration over this and the next three chapters. When you clone a repository, you make an exact replica of that repository. The clone has a special reference to the original repository. This reference lets your clone push (send) and pull (receive) changes to and from the original repository. You’ll study this special reference (called a remote) in the next chapter, and then read about push and pull in chapters 13 and 14.

In this chapter, you’ll make a copy of your repository by using git clone. You’ll examine your clone and figure out how to confirm that it’s an exact copy of the original, ...

Get Learn Git in a Month of Lunches now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.