Remote

A remote is a version of your repository hosted somewhere else, such as on GitHub. Remotes let you share commits with others by pushing your changes up and pulling theirs down.

Git & DevOps

A repository can have several remotes, each with a short name. The most common one, created automatically when you clone, is called origin.

Remotes are just bookmarked URLs. Listing them with git remote -v shows the addresses Git will push to and fetch from.

Syntax

git remote add <name> <url>

Examples

Bash

git remote -v

Output:

origin	https://github.com/you/repo.git (fetch)
origin	https://github.com/you/repo.git (push)

Learn it in a lesson

See also

Back to the Dictionary