Git:错误:RPC 失败;结果=22,HTTP 代码 = 411

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16557071/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 16:09:40  来源:igfitidea点击:

Git: error: RPC failed; result=22, HTTP code = 411

gitgithubruntime-error

提问by firedev

Symptoms:

症状:

Git suddenly refused to push a repository (to github in my case):

Git 突然拒绝推送存储库(在我的情况下推送到 github):

$ git push
Counting objects: 9292, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2136/2136), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (8222/8222), 1.27 MiB | 837 KiB/s, done.
Total 8222 (delta 6060), reused 8181 (delta 6033)
fatal: The remote end hung up unexpectedly
Everything up-to-date

回答by firedev

Here is what helped, the following command increases git buffer to 500mb:

这是有帮助的,以下命令将 git 缓冲区增加到 500mb:

git config http.postBuffer 524288000