Skip to main content

Remove a remote in git

For testing or for basic deployment setup for small sites I often use two remotes. Origin for my backup and live or test as a second remote. To remove a remote named test use:

git remote rm test

To see all remotes and their paths use

git remote -v