Article version: GitHub.com
Managing remote repositories
Learn to work with your local repositories on your computer and remote repositories hosted on GitHub.
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.