• 0

Rename a remote url in git

When collaborating with others, you might be using multipe remotes. I found this useful for setting up an automatic delpoyment system where i setup a remote called 'deploy' which I can push to deploy. If i wanted to change the name of the remote to, lets say 'testing' from 'deploy', I can rename my remote using the following command
git remote rename deploy testing
As you can tell, the sytax for the command is
git remote rename oldName newName