这是因为网速延迟大造成的
https://ipaddress.com/website/github.com
查找github.com

深圳将上述
140.82.113.3 github.com
199.232.69.194 github.global.ssl.fastly.net
添加到/etc/hosts中
sudo vim /etc/hosts

重启DNS
sudo killall -HUP mDNSResponder
再ping github.com就通了!
网友评论