1、解决方案:
找到hosts文件,一般在:
C:\Windows\System32\drivers\etc
增添以下代码:
# GitHub
192.30.253.112 github.com
192.30.253.118 gist.github.com
185.199.108.153 assets-cdn.github.com
199.232.68.133 raw.githubusercontent.com
199.232.68.133 gist.githubusercontent.com
199.232.28.133 cloud.githubusercontent.com
199.232.68.133 camo.githubusercontent.com
199.232.28.133 avatars0.githubusercontent.com
199.232.28.133 avatars1.githubusercontent.com
199.232.28.133 avatars2.githubusercontent.com
199.232.28.133 avatars3.githubusercontent.com
199.232.28.133 avatars4.githubusercontent.com
199.232.28.133 avatars5.githubusercontent.com
199.232.28.133 avatars6.githubusercontent.com
199.232.28.133 avatars7.githubusercontent.com
199.232.28.133 avatars8.githubusercontent.com
即可解决Github相应问题!飞一样的感觉!!!
↓↓↓↓↓↓如果还有问题接着让下看↓↓↓↓↓↓
2、更新IP
如果你发现添加上这些之后仍然没有效果,别担心,这种情况大概是Github更新了IP,解决方案如下:
(1)、打开ipaddress
(2)、查询上述地址更新的IP地址
github.com
gist.github.com
assets-cdn.github.com
githubusercontent.com
(3)、替换掉原来的IP地址
写在最后:
199.232.28.133 .githubusercontent.com
这种简洁写法我测试不成功,不知道是不是我哪里没弄好,有成功的小伙伴可以留言交流一下。