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

时间:2013-05-15 04:47:41

标签: git github runtime-error

症状:

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

1 个答案:

答案 0 :(得分:151)

以下命令将git buffer增加到500mb:

git config http.postBuffer 524288000