Mac下 git clone速度太慢解决方案
参考:https://blog.csdn.net/hzwwpgmwy/article/details/79043251
1、查找域名对应的ip地址,并修改hosts文件
nslookup github.global.ssl.fastly.Net
nslookup github.com
2、将下列内容加入 /etc/hosts文件中
151.101.76.249 http://global-ssl.fastly.net
192.30.255.113 http://github.com #此处112还是113根据自己的情况调整?
3、刷新DNS缓存
sudo dscacheutil -flushcache