O'Reilly logo

Pragmatic Guide to Git by Travis Swicegood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Part 4Working 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required