1、打开 IPAddress.com 查询 github.com 域名的ip地址,获得140.82.114.3 github.com
2、ping 140.82.114.3 通的
3、打开本地host文件(快捷键 Shift+Command+G,输入/etc/hosts),复制一份
4、写入
140.82.114.3 github.com
5、替换本地host文件,需要权限校验
6、输入sudo dscacheutil -flushcache,刷新DNS缓存
7、浏览器访问 https://github.com 正常