解决思路:

手动获取github网址,修改hosts文件,绕过国内dns解析,直接访问GitHub

解决办法:

打开 http://ping.chinaz.com/

查询以下链接的DNS解析地址:

  1. github.com
  2. assets-cdn.github.com
  3. github.global.ssl.fastly.net
  4. codeload.github.com
  5. raw.githubusercontent.com

编辑修改Host

vi /etc/hosts

2022年4月一键修改

echo -e "151.101.1.194 github.global.ssl.fastly.net\n185.199.108.153 assets-cdn.github.com\n140.82.112.3 github.com\n140.82.113.10 codeload.github.com\n185.199.109.133 raw.githubusercontent.com" > /etc/hosts

2022年4月18日补充:
https://github.com/ineo6/hosts

Last modification:March 21, 2023
If you think my article is useful to you, please feel free to appreciate