Article version: Enterprise Server 2.15

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-10-16. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Managing remote repositories

Guides for working with remote repositories.

About remote repositories

GitHub's collaborative approach to development depends on publishing commits from your local repository for other people to view, fetch, and update.

Which remote URL should I use?

There are several ways to clone repositories available on GitHub.

Adding a remote

To add a new remote, use the git remote add command on the terminal, in the directory your repository is stored at.

Changing a remote's URL

The git remote set-url command changes an existing remote repository URL.

Renaming a remote

Use the git remote rename command to rename an existing remote.

Removing a remote

Use the git remote rm command to remove a remote URL from your repository.

Ask a human

Can't find what you're looking for?

Contact us