Skip to main content

Manage set of tracked repositories ("remotes").

# To show a list of existing remotes, their names and URL:
git remote -v

# To show information about a remote:
git remote show <remote_name>

# To add a remote:
git remote add <remote_name> <remote_url>

# To change the URL of a remote (use '--add' to keep the existing URL):
git remote set-url <remote_name> <new_url>

# To remove a remote:
git remote remove <remote_name>

# To rename a remote:
git remote rename <old_name> <new_name>