github请求超时,需要 通过配置github的hosts来解决问题。
1.hosts文件路径
C:\Windows\System32\drivers\etc\hosts
2.添加hosts配置
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
3.通过以下网站获取所有github网址的IP地址
https://github.com.ipaddress.com/
https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
https://github.com.ipaddress.com/assets-cdn.github.com
4.cmd刷新DNS缓存
ipconfig /flushdns