原文:
1 及时更新github.com等一些域名对应的ip地址
ip地址查询网址,在该网址查询对应域名对应的ip,如:
2 mac下:执行命令sudo vi /etc/hosts修改对应文件(windows系统中对应hosts文件路径为C:\Windows\System32\drivers\etc\hosts)
# GitHub 主要是这4个
140.82.113.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.110.153 assets-cdn.github.com
140.82.113.4 gist.github.com
#192.30.253.119 gist.github.com
#199.232.28.133 assets-cdn.github.com
199.232.68.133 raw.githubusercontent.com
199.232.68.133 gist.githubusercontent.com
199.232.68.133 cloud.githubusercontent.com
199.232.68.133 camo.githubusercontent.com
199.232.68.133 avatars0.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars3.githubusercontent.com
3 保存后重新刷新即可。