git更新时提示ssh:Could not resolve hostname git.xxx.com: Temporary failure in name resolution
执行git pull报下面错误信息:
ssh: Could not resolve hostname git.xxx.com: Temporary failure in name resolution
fatal: Could not read from remote repository.
ssh: Could not resolve hostname git.xxx.com: Temporary failure in name resolution
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
and the repository exists.
以前都是正常的,今天突然就报这个错误了,想起今天把虚拟机网络Ipv4获取ip的方式由自动(Automatic)改为了手动(Manual)(因为虚拟机ip总是改变,对工作使用造成了一定影响),重新改为Automatic,重启网络,测试正常了。
(IP总是变化的问题还是没有解决啊,哭)