获取github的IP地址
访问:https://www.ipaddress.com/ 网址 依次获取以下三个网址的IP
这是我获取的IP:
140.82.114.3 github.com
199.232.69.194 github.global.ssl.fastly.net
140.82.113.9 codeload.github.com
windows系统
1.hosts文件路径:C:\Windows\System32\drivers\etc\hosts ,
2.添加上面查询到的IP到hosts文件中(此时可能需要管理员权限,可以将hosts复制到桌面,修改好了再复制回去覆盖原先的)
3.刷新DNS
ipconfig /flushdns
原文链接:https://blog.csdn.net/qq_44621510/article/details/95251993