打开C:\Windows\System32\drivers\etc\hosts,在文件末尾添加

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

保存后,在cmd终端中ping github.com,可以看到字节交互,说明连接成功。

 

链接:https://mrbailijie.github.io/docsifyBlog/index.html#/blog/github