解决github无法打开

查询github网址的IP

1. 打开IP查询网站: https://www.ipaddress.com/

分别输入并查询 github.com  github.global.ssl.fastly.net 网址的 IP

 2. 修改系统hosts文件,在末尾添加并保存。

Linux文件路径:etchosts

1 # GitHub Start
2 140.82.114.4 github.com
3 199.232.69.194 github.global.ssl.fastly.net
4      
5 # GitHub End

原文地址:https://www.cnblogs.com/moying-wq/p/13837138.html