I got the 413 Request Entity Too Large
error after running this command:
git push -u test1 current-repo --force
What is a reason of this error? How to avoid this error?
Join Stack Overflow to learn, share knowledge, and build your career.
I got the 413 Request Entity Too Large
error after running this command:
git push -u test1 current-repo --force
What is a reason of this error? How to avoid this error?
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.
client_max_body_size 100m;
at location /
... section in the config file.
– M. Rostami
Nov 9 '20 at 23:15
It worked for me after deleting the whole repository.And committing all files to the repository.
I fixed this issue for me by deleting the ".git" folder and adding the large folder into .gitignore and starting over from the init.