使用git clone命令克隆文件出现error: RPC failed; curl 18 transfer closed with outstanding read data remain问题 - Go语言中文社区

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


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

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

fatal: The remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

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

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

   git config --global http.postBuffer 524288000

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

   git config --list

   

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/dzhongjie/article/details/81152983
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-02-29 21:11:52
  • 阅读 ( 920 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢