github 443 timeout

github:443超时错误:
先试试这个:

git config --global --unset http.proxy
git config --global --unset https.proxy

在cmd尝试ping github.com如果出现超时,可以尝试修改hosts文件,添加github的dns解析。进入C:\Windows\System32\drivers\etc该目录下,直接修改hosts文件会无法保存,提示没有权限,可以这样操作:把hosts文件拖到桌面,然后修改好后再拖回去就可以。在hosts文件底部添加如下内容:

192.30.255.112 github.com git
185.31.16.184 github.global.ssl.fastly.net

然后打开cmd,刷新一下DNS缓存:

ipconfig /flushdns

再次尝试ping github.com应该就可以了。

你可能感兴趣的:(github,https,git)