Git Remote Advanced

Advanced remote management including multiple remotes and tracking branches.

On this page

Multiple remotes

git remote add upstream repository_url

Fetch from specific remote

git fetch upstream

Track remote branch

git checkout -b feature upstream/feature

Remove remote

git remote remove upstream

Why use multiple remotes?

  • Fork workflow
  • Enterprise mirror repositories