Rename a remote url in git

When col­lab­o­rat­ing with oth­ers, you might be using mul­tipe remotes. I found this use­ful for set­ting up an auto­matic delpoy­ment sys­tem 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 ‘test­ing’ from ‘deploy’, I can rename my remote using the fol­low­ing command

git remote rename deploy testing

As you can tell, the sytax for the com­mand 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 *