一、确定ip 进入网址 https://github.com.ipaddress.com查看GitHub的ip地址。  二、确定域名ip 进入网址 https://fastly.net.ipaddress.com/github.global.ssl.fastly.net 
三、确定静态资源ip 进入网址 https://github.com.ipaddress.com/assets-cdn.github.com  四、修改hosts文件 Windows系统:打开C:\Windows\System32\drivers\etc 找到hosts文件 在底部加入前三步获得的内容,即:
140.82.114.4 github.com 199.232.69.194 github.global.ssl.fastly.net 185.199.108.153 assets-cdn.github.com 185.199.110.153 assets-cdn.github.com 185.199.111.153 assets-cdn.github.com
保存并退出即可。需要提供管理员权限!!! 接着还需要刷新DNS
windows下刷新DNS的方法:
打开CMD
输入 ipconfig /flushdns 
|