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?
If you get error 413, then the issue doesn't lie with git but with your web server. It's your web server that is blocking big upload files.
Just load your nginx.conf
and add client_max_body_size 50m;
( changing the value to your needs ) in the http block.
Reload nginx to accept the new config by executing sudo service nginx reload
and try again to push your commit over http.
In your httpd.conf
add LimitRequestBody 52428800
( changing the value to your needs ) inside a <Directory />
block. Doing this you can limit the request of the whole server filesystem, just a single Virtual Host or a directory.
I hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With