修改git仓库的远程地址

    在我们开发的过程中,代码一般是由 git 来管理的,但有些时候我们的 git 仓库的地址可能发生了变换,比如我们使用的 gitLab 地址发生了变化,那么这个时候如何来将原项目的 git 地址进行修改呢?

 

git remote -v  列出项目的远程地址

 

git remote set-url origin http://服务器地址/所在路径.git

 

eg: git remote set-url origin http://localhost/huan1993/springsecurity.git

posted @ 2018-11-05 10:55  huan1993  阅读(25)  评论(0编辑  收藏  举报