最近项目要进入到新一轮的spring,需要从git上克隆一份最新的代码,在使用终端clone的时候,屡次出现如下错误:

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默认值太小的原因,重新在终端配置一下这个值就可以了。

解决方法:

524288000代表B,524288000B也就是500MB。这个值得大小,可以根据项目酌情设置。

也可以用如下命令查看是否配置成功:

git config –list

注意:两条命令的-都为两个连续的-,请注意区分。


git config –global http.postBuffer 524288000git报错error: RPC failed; curl 18 transfer closed with outstanding read data remaining

高亮的部分说明我们已经配置成功了。

转载自:http://blog.csdn.net/drift_axe/article/details/54924359

参考链接:



相关文章:

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