fatal: The remote end hung up unexpectedly

4 Comments

If  you are using phpcloud.com and are experiencing errors with git that look like this

git push
Password:
Counting objects: 722, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (711/711), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (719/719), 1.34 MiB | 1.32 MiB/s, done.
Total 719 (delta 340), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Iatal: expected ok/error, helper said ‘2004??LEOx?nq?; <
|DP?n,?U?EԎs?m?WX?G?Tl??jA?/?’

and you are trying to push large files (not sure what is defined as “large”) you may need to change some git settings.

on Windows use
[http]
postBuffer = 524288000

On Linux use
git config http.postBuffer 524288000

This is thanks to Boaz.  He posted the solution on our GetSatisfaction page.