解决方案
1.获取Github ip地址
win+R – cmd --ping github.com
ping github.com
2.配置hosts文件(需管理员身份打开可保存)
C:\Windows\System32\drivers\etc\hosts
添加20.205.243.166 github.com
20.205.243.166 github.com
3. 刷新dns缓存
win+R --cmd --ipconfig /flushdns
ipconfig /flushdns
4.解决,亲测有效