修改hosts文件
文件位置:
Windows: C:\Windows\System32\drivers\etc\hosts
Linux: sudo gedit /etc/hosts
添加以下两行内容:
151.101.185.194 github.global-ssl.fastly.net
192.30.253.112 github.com
刷新DNS:
windows: ipconfig /flushdns
CentOS: service network restart
Ubuntu: sudo /etc/init.d/networking restart