github打不开怎么办?

https://www.ipaddress.com/

在搜索栏里分别搜索以下域名并将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

原文地址:https://www.cnblogs.com/smlile-you-me/p/14580241.html