stupid issue with Github going on right now. I have a decent amount of changes (~120MB in size), when I attempt to push, this is what happens:
error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
I've already done
git config http.postBuffer 524288000
, so that doesn't seem to be the issue. What could it be?
I had this error (error: RPC failed; result=22, HTTP code = 413) when I tried to push my initial commit to a new BitBucket repository. The error occurred for me because the BitBucket repo had no master branch. If you are using SourceTree you can create a master branch on the origin by pressing the Git Flow button.
I had the same problem but I was using a reverse proxy.
So I had to set
inside both configure files :
I already had "HTTPS//" in the git URL yet faced this error.
All I did was to add option -u with push and it worked.
git push -u origin master
Was facing the same issue however it got resolved by cleaning up the git repository (Clean untracked files using "git clean").
I figured it out!!! Of course I would right after I hit post!
I had the repo set to use the HTTPS url, I changed it to the SSH address, and everything resumed working flawlessly.
For those who use IIS 7 to host a git
http
/https
endpoint:You need to increase your
uploadReadAheadSize
.Launch Internet Information Services (IIS) Manager
Expand the Server field
Expand Sites
Select the site you want to make the modification for.
In the Features section, double click
Configuration Editor
Under
Section
select:system.webServer > serverRuntime
Modify the
uploadReadAheadSize
section (The value must be between0
and2147483647
.)Click Apply
Restart the Website