Article version:

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