在搜索栏里分别搜索以下域名并将IP和域名的对应关系写进本机的hosts文件中
sudo vim /etc/hosts
140.82.113.3 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
重启网卡使配置生效
/etc/init.d/networking restart