SourceTree Could not resolve host: github.com

点击推送,本地仓库同步到远程仓库时报错:Could not resolve host: github.com

首先打开终端:ping github.com

得到github的IP 192.30.255.112

在/etc/hosts中添加一行如下:

192.30.255.112 github.com

再次点击推送即可

    原文作者:Accepted_
    原文地址: https://www.jianshu.com/p/0c27c986d0bd
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞