1.获取ip地址
2.修改host文件
文件路径:C:\Windows\System32\drivers\etc\host
192.30.253.112 github.com
另外,图片无法显示啥的,加上
# GitHub Start
192.30.253.112 github.com
192.30.253.119 gist.github.com
199.232.4.133 assets-cdn.github.com
199.232.4.133 raw.githubusercontent.com
199.232.4.133 gist.githubusercontent.com
199.232.4.133 cloud.githubusercontent.com
199.232.4.133 camo.githubusercontent.com
199.232.4.133 avatars0.githubusercontent.com
199.232.4.133 avatars1.githubusercontent.com
199.232.4.133 avatars2.githubusercontent.com
199.232.4.133 avatars3.githubusercontent.com
199.232.4.133 avatars4.githubusercontent.com
199.232.4.133 avatars5.githubusercontent.com
199.232.4.133 avatars6.githubusercontent.com
199.232.4.133 avatars7.githubusercontent.com
199.232.4.133 avatars8.githubusercontent.com
151.101.113.194 github.global.ssl.fastly.net
# GitHub End
3.重启浏览器或更新DNS缓存
控制台输入:ipconfig /flushdns