git运行报错 Could not resolve host: github.com
·
git运行push命令时,报错 Could not resolve host: github.com:

根据网上搜到的答案:https://blog.csdn.net/zhanglongdream/article/details/71307775
是先 ping github.com,然后我ping完之后,直接是下图:

根据查到的获取到 ip为13.250.177.233。
编辑系统文件 etc/hosts,位置为 C:\Windows\System32\drivers\etc,添加了下图语句,
![]()
重新运行了 git push -u origin master , 最后提交成功。
更多推荐
所有评论(0)