git报错:error: RPC failed; curl 55 Send failure: Connection fatal: the remote end hung up unexpectedly
修改提交缓存大小为500M,或者更大的数字。代码进行分批上传,不要一次性上传。
·
参考文章:git 推送出现 "fatal: The remote end hung up unexpectedly" 解决方案-CSDN博客
聊聊git push到远程服务器出现RPC failed问题-腾讯云开发者社区-腾讯云
报错如下:

方法一:
修改提交缓存大小为500M,或者更大的数字
git config --global http.postBuffer 524288000
# some comments below report having to double the value:
git config --global http.postBuffer 1048576000
或者在克隆/创建版本库生成的 .git目录下面修改生成的config文件增加如下:
[http]
postBuffer = 524288000
修改如下:

然后重新推送。
方案二:
代码进行分批上传,不要一次性上传
方案三:
如果网络环境不太好,可以通过增加下面的参数,降低失败率:
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
更多推荐
所有评论(0)