如何在IP地址更改后访问git remote repo

可能重复:
如何使用Git更改远程存储库URI?

我有2个远程回购

remotes/origin/develop
remotes/origin/master

原来这些是在ip-address-1 。 IP地址已更改为new-ip-address-2

如何更改我的本地引用,以便我可以在新的IP地址访问相同的回购站点?


您可以尝试对主机文件进行更改并强制DNS解析(旧的DNS为新的IP,我以192.168.0.2为例)

192.168.0.2 old.dns.entry

这不是最好的解决方案,但可以在某些环境中使用。

链接地址: http://www.djcxy.com/p/4615.html

上一篇: How to access git remote repo since IP address changed

下一篇: How can I change the remote/target repository URL on Windows?