使用git clone命令克隆文件出现error: RPC failed; curl 18 transfer closed with outstanding read data remaining问题

在使用git clone命令从github克隆源码到电脑时出现了以下问题

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

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

原因是因为curl的postBuffer的默认值太小,我们需要调整它的大小,在终端重新配置大小

   在这里,我把postBuffer的值配置成500M,对笔者来说已经够了。可以根据你需要下载的文件大小,将postBuffer值配置成合适的大小。

   git config --global http.postBuffer 524288000

   这样已经配置好了,如果你不确定,可以根据以下命令查看postBuffer。

   git config --list

猜你喜欢

转载自www.cnblogs.com/ZhengHengWU/p/13174151.html