git clone 拉取文件过大 error: RPC failed; curl 18 transfer closed with outstanding read data remaining

  • 内容
  • 评论
  • 相关

remote: Counting objects: 34438, done. remote: Compressing objects: 100% (24840/24840), done. error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: 过早的文件结束符(EOF) fatal: index-pack failed

 

原因是因为git上的文件过大,超过curl缓冲,clone不成功

解决方法

git config --global http.postBuffer 24288000

评论

0条评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注