實在不行使用鏡像: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