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

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *