git: rename a remote

View existing remotes:

git remote -v

Change remote name from origin to destination:

git remote name origin destination

https://help.github.com/articles/renaming-a-remote

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 git@github.com:your/repo.git

http://git-scm.com/book/en/Git-Basics-Working-with-Remotes

Leave a Reply

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