1.访问:https://www.ipaddress.com/ 网址 依次获取以下几个网址的IP
- github.com
- github.global.ssl.fastly.net
- codeload.github.com
- assets-cdn.github.com
- avatars0.githubusercontent.com
2.修改hosts文件
windows系统
hosts文件路径:C:\Windows\System32\drivers\etc\hosts
cmd窗口智行:ipconfig /flushdns 回车后执行刷新本地dns缓存数据即可。
linux系统
sudo gedit /etc/hosts 或 sudo vim /etc/hosts
保存,退出,并重启网络
sudo /etc/init.d/networking restart