git clone速度太慢的解决办法

思路:

git clone特别慢是因为github.global.ssl.fastly.net域名被限制了。
只要找到这个域名对应的ip地址,然后在hosts文件中加上ip–>域名的映射,刷新DNS缓存便可。

实施方法:

1.在网站 https://www.ipaddress.com/ 分别搜索:

github.global.ssl.fastly.net
github.com

2.在hosts文件末尾添加两行(对应上面查到的ip)

151.101.185.194 github.global-ssl.fastly.net
192.30.253.112 github.com
 
原文地址:https://www.cnblogs.com/twobrother/p/11153011.html