Remote Git Repositories
In SVN, a single central repository is used as the communication hub between developers, and collaboration means transferring changes between each developer’s working copy and the central repository. Git’s collaboration model is different. Each developer has a repository copy that contains the complete local history and branch structure. Developers do not need to share individual changes one by one with other developers; in general, they share a series of work together. When changing a central repository, Git does not commit individual working-copy changes to that repository, but instead shares entire branches between repositories.
The commands shown below let you manage connections to other repositories, publish branches by pushing them to another repository, and check other developers’ progress by pulling branches into your local repository.