Git 拉取代码提示 unable to access ‘http://xxx.xxx.com/xxx/xxx.git/: Could not resolve host 异常解决
·
项目场景:
在开发过程中,会遇到git拉取提交操作。最近拉取主分支代码的时候,提示拉取失败
问题描述
提示如下:
Update failed
unable to access 'http://xxx.xxx.com/xxx/xxx.git/: Could not resolve host xxx.xxx.com
原因分析:
出现这个问题,一般是域名对应IP发生变化,git拉取时访问不到造成的。
解决方案:
两种解决方法:
第一种:
本地 host文件 域名对应的IP 替换成新的。
host文件地址:C:\Windows\System32\drivers\etc
第二种:
在idea中找到git 地址,把域名替换成新IP 来解决。 Git ---> Manage Remotes
更多推荐
所有评论(0)