1.错误报time out
2.怀疑连接不到github.com,在cmd窗口中,尝试ping一下百度。
网络正常
3.然后再ping一下github.com
4. 打开C:WindowsSystem32driversetchosts,内容如下:
确实没有github.com的解析
在文件末尾添加如下内容,并保存:
192.30.255.112 github.com git
185.31.16.184 github.global.ssl.fastly.net
重启cmd窗口,继续ping一下github.com:
说明,本机已经能够正常解析github.com这个域名了。至此,问题解决。
参考大神:https://blog.csdn.net/qq_42540989/article/details/83745126