Today, I had the problem that git failed to push a large change set to a HTTP remote with the errors
HTTP error code 403: remote hung up unexpectedly and
RPC failed; result=22. After some googling around I figured that I had to increase a buffer setting:
git config http.postBuffer 524288000
Maybe this helps someone else having the same problem.