Mac下 git clone速度太慢解決方案
參考:https://blog.csdn.net/hzwwpgmwy/article/details/79043251
1、查找域名對(duì)應(yīng)的ip地址,并修改hosts文件
nslookup github.global.ssl.fastly.Net
nslookup github.com

屏幕快照 2019-05-16 17.02.40.png

屏幕快照 2019-05-16 17.03.55.png
2、將下列內(nèi)容加入 /etc/hosts文件中
151.101.76.249 http://global-ssl.fastly.net
192.30.255.113 http://github.com #此處112還是113根據(jù)自己的情況調(diào)整?
3、刷新DNS緩存
sudo dscacheutil -flushcache