git: rename a remote

View existing remotes:

git remote -v

Change remote name from origin to destination:

git remote name origin destination

Note that this just changes the name of the remote repo.

To change the server itself use:

git remote rm origin

and add your new remote:

git remote add origin

Leave a Reply

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