访问git很慢或图片显示加载失败

windows用户 打开 C:\Windows\System32\drivers\etc\hosts
配置如下:

#解决git clone 速度慢的问题
52.74.223.119 github.com
31.13.82.23 github.global.ssl.fastly.net
#解决浏览器下载master-zip包的问题
54.251.140.56 codeload.github.com
#解决github不能查看图片的问题
192.30.253.112 Build software better, together
192.30.253.119 gist.github.com
151.101.184.133 assets-cdn.github.com
151.101.184.133 raw.githubusercontent.com
151.101.184.133 gist.githubusercontent.com
151.101.184.133 cloud.githubusercontent.com
151.101.184.133 camo.githubusercontent.com
151.101.184.133 avatars0.githubusercontent.com
151.101.184.133 avatars1.githubusercontent.com
151.101.184.133 avatars2.githubusercontent.com
151.101.184.133 avatars3.githubusercontent.com
151.101.184.133 avatars4.githubusercontent.com
151.101.184.133 avatars5.githubusercontent.com
151.101.184.133 avatars6.githubusercontent.com
151.101.184.133 avatars7.githubusercontent.com
151.101.184.133 avatars8.githubusercontent.com

当然 ,如果还是很慢的话 ,可以访问 dns查询自行去获取github响应最快的ip地址
最后一步ipconfig /flushdns 清除dns缓存
虽然还是很慢,但还是比没设置的时候好一些了

你可能感兴趣的:(访问git很慢或图片显示加载失败)