在向git上传代码,即git push
或从git上download代码 git pull 时,会有如下错误提示:
ssh: Could not resolve hostname **: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
当前环境:
(1)WMware 虚拟机
(2)ubuntu 14.04
(3)网络链接为 Ethernet connector1
连接方式为:Manual
IP:192.168.10.30
经过排查发现,出现上述报警的原因是,网络连接的问题,将网络调整为Ethernet connector1
连接方式为:Automatic(DHCP)
再进行git pull 和 git push 操作即可。