- git 出现错误 Could not resolve host:
- git 出现错误 Could not resolve host:
- git 出现错误 Could not resolve host:
- git命令报错Could not resolve host: s
- git push出现could not resolve host
- centos linux下使用yum命令安装docker时报错
- git错误--ssh: Could not resolve ho
- 解决github 请检查是否有访问权限或仓库是否存在问题
- Mac 克隆码云项目到本地无法找到主机
- 2021-01-02git的一次问题解决-sshCould no
原来是因为github.com没有被主机给解析,
第一步 ping github.com
PING github.com (192.30.255.112): 56 data bytes
64 bytes from 192.30.255.112: icmp_seq=0 ttl=43 time=144.449 ms
64 bytes from 192.30.255.112: icmp_seq=1 ttl=43 time=140.965 ms
^C
--- github.com ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 140.965/142.707/144.449/1.742 ms
先 ping 看一下主机地址
然后 编辑文件etc/hosts
sudo vi /etc/hosts
i 启动编辑模式
::1 localhost
192.30.255.112 github.com
然后添加github的地址
esc 退出编辑模式
:wq退出vi
---------------------
作者:zhanglongdream
来源:CSDN
原文:https://blog.csdn.net/zhanglongdream/article/details/71307775
版权声明:本文为博主原创文章,转载请附上博文链接!
网友评论