Git地址更换,代码如何拉取

  1. 找到原来的克隆地址

http://10.168.2.172:9000/front/xxx_jkwl.git

  1. 拿到新地址,替换上方地址中的IP和端口号

127.88.69.233:9082/ => http://127.88.69.233:9082/front/xxx_jkwl.git

  1. 将新地址替换掉下方的URL,在终端输入命令即可

git remote set-url origin URL // 更换远程仓库地址,URL为新地址。

猜你喜欢

转载自blog.csdn.net/daimaxiaodao/article/details/136916885