转载文章:https://zhuanlan.zhihu.com/p/93436925
一、修改本地hosts文件
windows系统的hosts文件的位置如下:C:\Windows\System32\drivers\etc\hosts
mac/linux系统的hosts文件的位置如下:/etc/hosts
二、增加http://github.global.ssl.fastly.net和http://github.com的映射
访问https://www.ipaddress.com,分别输入github.global.ssl.fastly.net和github.com
下面是我的配置
140.82.114.4 github.com
199.232.5.194 github.global.ssl.fastly.net