- 打开host文件,位置在如下路径,用记事本打开
C:WindowsSystem32driversetchosts
- 文件末尾写入
192.30.253.112 http://github.com
192.30.253.119 http://gist.github.com
151.101.100.133 http://assets-cdn.github.com
151.101.100.133 http://raw.githubusercontent.com
151.101.100.133 http://gist.githubusercontent.com
151.101.100.133 http://cloud.githubusercontent.com
151.101.100.133 http://camo.githubusercontent.com
151.101.100.133 http://avatars0.githubusercontent.com
151.101.100.133 http://avatars1.githubusercontent.com
151.101.100.133 http://avatars2.githubusercontent.com
151.101.100.133 http://avatars3.githubusercontent.com
151.101.100.133 http://avatars4.githubusercontent.com
151.101.100.133 http://avatars5.githubusercontent.com
151.101.100.133 http://avatars6.githubusercontent.com
151.101.100.133 http://avatars7.githubusercontent.com
151.101.100.133 http://avatars8.githubusercontent.com
- 更新文件并生效在cmd窗口中输入:
ipconfig /flushdns
原文:
https://zhuanlan.zhihu.com/p/109466869