Git-更换远程仓库

0.摘要git 当Git服务器的IP地址变更,或者因为其它缘由须要更换远程仓库地址的时候,能够采用先删除远程仓库地址,而后从新关联新地址的方式。bash   1.更换远程仓库地址服务器 git remote rm origin # 取消与远程仓库的关联 git remote add origin git@166.111.77.123:/home/git/new.git # 关联新的远程仓库 关
相关文章
相关标签/搜索