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

报错:

1 error: RPC failed; curl 18 transfer closed with outstanding read data remaining
2 fatal: The remote end hung up unexpectedly
3 fatal: 过早的文件结束符(EOF)
4 fatal: index-pack 失败

处理:

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

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

   git config --global http.postBuffer 524288000

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

   git config --list

参考链接:https://blog.csdn.net/dzhongjie/article/details/81152983

原文地址:https://www.cnblogs.com/jsdy/p/11825267.html