修改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
本文来自博客园,作者:huan1993,转载请注明原文链接:https://www.cnblogs.com/huan1993/p/15416159.html