实在不行使用镜像:https://hub.fastgit.org/
2021.06.23
记住3个关键网址
github网址查询:The world's leading software development platform · GitHub
github域名查询:▷ github.global.ssl.fastly.net Website statistics and traffic analysis
github静态资源ip:https://github.com.ipaddress.com
找到相应的地址然后添加到C:\Windows\System32\drivers\etc\hosts,然后win+R,输入cmd,再输入ipconfig/flushdns
以下是复制下来的相关内容:
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.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
参考:https://zhuanlan.zhihu.com/p/158938544
----------------------------分割线-------------------------------------
2020.06.22
使用以下方式:
在https://github.com.ipaddress.com/找到:
在https://fastly.net.ipaddress.com/github.global.ssl.fastly.net找到:
然后在: C:\Windows\System32\drivers\etc\hosts中添加
140.82.113.4 gist.github.com
199.232.69.194 github.global.ssl.fastly.net
命令行输入ipconfig/flushdns刷新dns
最后是:
----------------------------分割线-------------------------------------
windows下路径为:C:\Windows\System32\drivers\etc\hosts
向其中加入:
#github
192.30.253.113 github.com192.30.253.118 gist.github.com
命令行输入ipconfig/flushdns刷新dns