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 , 最后提交成功。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐