解决思路:修改Host
利用上面的网站查询github.com和raw.githubusercontent.com的DNS解析的IP地址


最后,修改服务器的/etc/hosts

添加如下两行:
140.82.112.3 github.com
185.199.108.133 raw.githubusercontent.com

这是最新的IP地址,如果更改之后还无法git clone的话,可能IP地址又更新了,需要查询一下最新的地址。
解决思路:修改Host
利用上面的网站查询github.com和raw.githubusercontent.com的DNS解析的IP地址
最后,修改服务器的/etc/hosts
添加如下两行:
140.82.112.3 github.com
185.199.108.133 raw.githubusercontent.com
这是最新的IP地址,如果更改之后还无法git clone的话,可能IP地址又更新了,需要查询一下最新的地址。