用户登录
用户注册

分享至

成功解决使用git clone命令克隆文件出现error: RPC failed; curl 18 transfer closed with outstanding read data remaini

  • 作者: 别叫我叫兽
  • 来源: 51数据库
  • 2021-07-11

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

remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (8/8), 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 失败

解决方法,在终端中输入git config --global http.postBuffer 524288000
想要查看是否设置成功输入git config --list

(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/code$  git config --global http.postBuffer 524288000
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/code$ 
(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/code$   git config --listhttp.postbuffer=524288000

然后再用git clone 命令就可以成功了。

软件
前端设计
程序设计
Java相关