Could not resolve host: gitee.com

# 解决

1. cmd -> 打开命令行 -> 输入: ipconfig -> 找到当前使用的ipv4 (也就是IP地址)
2. ping一下IP地址 (ping 192.168.1.110)
3. 如果正常,请修改git安装目录中 (xxx/git/etc/hosts) 的hosts主机文件
4. 添加信息如: 192.168.1.117 gitee.com

5. 如果是github,请换成:192.168.1.117 github.com
发布了831 篇原创文章 · 获赞 387 · 访问量 278万+

猜你喜欢

转载自blog.csdn.net/AinUser/article/details/104783021
今日推荐