19 Adding and Removing Remotes

Git allows you to have as many remote repositories as you like. It’s common to have a different remote for each member of your team in a fully distributed architecture for your repositories. Git requires that each remote have a unique name.

You must tell Git where to access remote repositories. You do this using the git remote add command.[15] It requires two parameters: a name and a repository URL.

The first is simply the short name you use to reference the remote repository by. The name origin is the conventional name for the repository that you clone from. Git uses this convention in several commands that allow you to skip the remote name when you’re working with the origin repository.

The 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.