修改项目github地址命令 - maggie03230/maggie03230.github.io GitHub Wiki

转自:http://blog.csdn.net/zhanggang807/article/details/36025845

列出现有的地址:

$ git remote -v  

rigin  https://github.com/USERNAME/REPOSITORY.git (fetch)  
origin  https://github.com/USERNAME/REPOSITORY.git (push)

修改:
$ git remote set-url origin [email protected]:username/repository2.git

$ git remote -v 一下就可以看到地址变化啦~