分别去下面三个网站查询IP.
github网址查询: https://github.com.ipaddress.com/
github域名查询: https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
github静态资源ip: https://github.com.ipaddress.com/assets-cdn.github.com
配置host:
host位置:C:\Windows\System32\drivers\etc
# resolve github not open
140.82.112.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
修改后需要刷新dns缓存:cmd -> ipconfig /flushdns
以上是网上的一些做法,我做了参考,发现还是时不时不稳定。目前没有什么好的办法,后面有了再补充。