remote

A short name saved in a repository's config that stands for another repository's location, a URL or a path, so you can fetch from and push to it.

In more detail

git remote add origin followed by a URL stores the name and location in .git/config, and git remote -v lists them. A remote is configuration, not a copy: it often points at a hosting service such as GitHub, but a repository in the folder next door works just as well. git push sends commits to a remote and git fetch brings its commits back, and a repository can have any number of remotes.

Examples

git remote set-url hub ../mirror.git
git config remote.origin.url

Related terms

Taught in

References