Git修改远程仓库地址

来源:互联网 发布:混沌与秩序2随从数据库 编辑:程序博客网 时间:2024/05/01 23:23

背景

公司路由罢工了,代码服务器地址临时换了下。相应的git工程远程仓库地址也需要换下。

代码

git版本1.9.5,效果:修改远程仓库地址

$ git remote set-url origin git@192.168.0.123:/home/gits/test.git

git给出的帮助

git remote set-url [--push] <name> <newurl> [<oldurl>]git remote set-url --add <name> <newurl>git remote set-url --delete <name> <url>
0 0