码迷,mamicode.com
首页 > 其他好文 > 详细

git clone速度太慢的解决办法

时间:2019-07-08 19:53:04      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:glob   tps   com   net   stl   int   git   ipaddress   add   

思路:

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
 

git clone速度太慢的解决办法

标签:glob   tps   com   net   stl   int   git   ipaddress   add   

原文地址:https://www.cnblogs.com/twobrother/p/11153011.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!