Part 4 Working with a Team

Everything we’ve covered up to this point is about working with Git on your own. You can use Git like this to track your own projects, but that doesn’t take full advantage of Git’s power. You need to be able to collaborate with other developers on your team using Git.

You share code with other developers using remote repositories. Remote repositories are given names to make them easier to remember. For example, the conventional name for your default remote repository is origin.

There are two different ways to share code through a remote repository in Git: with a shared repository model or a distributed repository model. For a visual of these two models, see the following image of a shared and distributed repository ...

Get Pragmatic Guide to Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.