1. 修改本地hosts文件
windows系统的hosts文件的位置如下:C:\Windows\System32\drivers\etc\hosts
mac/linux系统的hosts文件的位置如下:/etc/hosts
2. 增加[github.global.ssl.fastly.net]和[http://github.com…
获取Github相关网站的ip
访问https://www.ipaddress.com,拉下来,找到页面中下方
分别输入github.global.ssl.fastly.net和github.com,查询ip地址,并配置到hosts文件中,如:
x.x.x.x github.com
x.x.x.x github.global.ssl.fastly.net