在使用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

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

 

相关文章:

  • 2021-09-20
  • 2021-09-07
  • 2021-04-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-06
  • 2021-07-30
  • 2022-02-07
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案