目录
分两步
一、编辑Hosts文件
登录网站 https://www.ipaddress.com/ 或https://www.whatsmydns.net/#A/github.com
分别搜索:
github.global.ssl.fastly.net
github.com
记录下对应的ip地址
修改hosts文件
Windows上的hosts文件路径在C:\Windows\System32\drivers\etc\hosts
Linux的hosts文件路径在:sudo vim /etc/hosts
刷新DNS
Winodws系统的做法:打开CMD,输入ipconfig /flushdns
Linux的做法:在终端输入sudo /etc/init.d/networking restart
二、使用代理
git config --global http.proxy http://127.0.0.1:1080
2074

被折叠的 条评论
为什么被折叠?



