适用系统:Windows
1.打开hosts文件:C:\Windows\System32\drivers\etc\hosts
2.增加地址和域名的映射
(1)进入该网站:https://www.ipaddress.com
(2)输入github.com,得到ip(左上角)
(3)在hosts文件最后添加代码
上面得到的ip地址+空格+https://github.com
例如: 125.82.110.2 https://github.com
3.刷新DNS
Win+R 打开命令行,输入cmd
输入 ipconfig/flushdns
以上是我第一次配置的,后来发现了一个更好用的,安装下载就好,速度更快:
原文链接:
https://blog.youkuaiyun.com/what951006/article/details/110115023