2013-05-15 59 views
65

症狀:Git:錯誤:RPC失敗;結果= 22,HTTP代碼= 411

的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

可能重複[git push failed:RPC failed;結果= 22,HTTP代碼= 411](http://stackoverflow.com/questions/12651749/git-push-fails-rpc-failed-result-22-http-code-411) – rodrigorgs

回答

149

這裏是什麼幫助,下面的命令增加混帳緩衝區爲500MB:

git config http.postBuffer 524288000 
+0

+1張貼有用的自我-回答。 ProjectLocker幾周來一直在爲我工作,然後突然間我收到了這條消息。這個答案對我有用。 – brentlightsey

+1

你是怎麼弄出這個緩衝區的問題的?謝謝!這也解決了我的問題! – Jaskey

+0

更改爲git config直接應用沒有任何重新啓動? – RayofCommand

相關問題