git fatal: write error: Broken pipe

Today I was trying to do a git push and was getting an error


Compressing objects: 100% (164/164), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (570/570), 6.08 MiB, done.
Total 570 (delta 276), reused 551 (delta 264)
fatal: The remote end hung up unexpectedly
fatal: expected ok/error, helper said '2004�f��,'�c6��}{�c�eM��#�>�'

fatal: write error: Broken pipe

The actual error message part changes if you try again thinking it might have been a network error.

The fix was to change git configuration to have a larger http post buffer of 100MB.

git config http.postBuffer 104857600

Thanks to github support.

Leave a Reply