Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large [duplicate]

Tags:

git

I got the 413 Request Entity Too Large error after running this command:

git push -u test1 current-repo --force

enter image description here

What is a reason of this error? How to avoid this error?

like image 213
Vivek Bhatt Avatar asked Dec 14 '16 14:12

Vivek Bhatt


People also ask

How do I fix Nginx 413 Request Entity Too Large?

The solution is to increase the client request size body by the client_max_body_size parameter in nginx. conf file. Following is the description of the client_max_body_size parameter. The default value is 1MB and you can set this to an HTTP, server or location contexts.


1 Answers

Guess you have a reverse proxy like Nginx configured. That by default is limited to a 10m upload size. Check out http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size for how to configure your proxy.

like image 79
Javali Avatar answered Oct 03 '22 01:10

Javali