git克隆失败提示RPC failed的解决方法

现象

bash 复制代码
$ git clone https://github.com/guillemj/dpkg.git
Cloning into 'dpkg'...
remote: Enumerating objects: 113312, done.
remote: Counting objects: 100% (18045/18045), done.
remote: Compressing objects: 100% (3915/3915), done.
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

关键字:git, error, RPC failed, curl 18 transfer closed with outstanding read data remaining

git pull也会遇到同样的错误,解决方法相同。

原因

git的postBuffer设置小于下载仓库所需。

解决方法

在Git Bash中执行:

bash 复制代码
git config --global http.postBuffer 524288000
git config --global https.postBuffer 524288000

其中524288000的单位是字节,相当于500MB。如果修改之后还是报相同的错误可以尝试继续增大。

参考资料:

git pull 报错:git - error: RPC failed; curl 18 transfer closed with outstanding read data remaining 解决_git pull error: rpc failed; curl 18 transfer close-CSDN博客https://blog.csdn.net/LJFPHP/article/details/77702476error: RPC failed; curl 18 transfer closed with outstanding read data remaining-CSDN博客https://blog.csdn.net/weixin_38382857/article/details/88102705

相关推荐
西西偷西瓜2 小时前
Soybean Admin移除git-hooks永久关闭git校验
git·vue
Archie_IT3 小时前
修图自由!自建IOPaint服务器,手机平板随时随地远程调用在线P图
运维·服务器·前端·git·深度学习·npm·conda
Qredsun5 小时前
获取git分支间差异文件列表
git
黑眼圈的小熊猫5 小时前
Git开发
大数据·git·elasticsearch
小镇敲码人12 小时前
【深入浅出 Git】:从入门到精通
git
gqkmiss15 小时前
Git 常用命令集与实际使用 Demo
大数据·git·elasticsearch·git 命令·git 命令大全
yantuguiguziPGJ16 小时前
Windows 下搭建 Git 本地服务器并进行开发
git
追风落叶乔木生17 小时前
Light RPC:一款轻量高效的Java RPC框架实践指南
java·spring boot·rpc
程序猿chen20 小时前
安全岗の夺命连环问:(第壹篇)从XSS到0day的灵魂拷问
前端·git·安全·面试·跳槽·xss·改行学it
ducking__1 天前
git基本使用
git