这个问题纠结了我一天多,用终端命令行下载,下载速度一直是10k左右,特别慢,

 

最后报的错误是

clone failed

early eof  

The remote end hung up unexpectedly
fatal: index-pack failed

RPC failed; curl 18 transfer closed with outstanding read data remaining

,刚开始修改了

1:git config http.postBuffer 524288000 (524288000 大概是500M)
之后再试,如果还是不行的话试试加大数值,但是这样没有解决问题,因为这个是增加数量的,而不是提高网速的问题

2. 最后的解决方案

访问 ▷ GitHub.com : GitHub: Where the world builds software · GitHub 


获取cdn域名以及ip地址 ,

2.1 用这个输入框,查询对应的github.com,以及对应的:github.global.ssl.fastly.net

Windows环境时候,打开hosts文件

C:\Windows\System32\drivers\etc\hosts 

在hosts文件最末尾添加两句话:刚才查询的github.com:对应的ip,和  github.global.ssl.fastly.net :对应的ip,如下: ​​​​​​​

151.101.185.194 http://github.global.ssl.fastly.net 
192.30.253.112 http://github.com

然后保存。

最后刷新DNS 
windows方法:cmd执行 ipconfig /flushdns 

重新打开下载的链接,网速提高了平均8倍左右,就下载成功了

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐