Tuesday, September 30, 2014

Fix git's "The remote end hung up unexpectedly" error

If you push your changes to a remote branch and get this error:

error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (460/460), 1.08 MiB | 0 bytes/s, done.
Total 460 (delta 33), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly


Just increase your git buffer (e.g 500MB) and it will be fine:

$ git config http.postBuffer 524288000