8

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?

Alex K
  • 21,162
  • 18
  • 101
  • 217
Vivek Bhatt
  • 109
  • 1
  • 1
  • 4
  • 1
    Please read http://stackoverflow.com/help/how-to-ask and refine your question accordingly. – Vampire Dec 14 '16 at 14:13
  • 1
    @VivekBhatt This can help you: [413 “Request Entity Too Large” error with uploading a file](http://craftcms.stackexchange.com/q/2328) & [Large artifacts fail to upload](https://gitlab.com/gitlab-org/gitlab-ce/issues/3812) – Alex K Dec 14 '16 at 14:56
  • But I am using github. – Vivek Bhatt Dec 14 '16 at 15:00
  • Please check the link https://stackoverflow.com/questions/7489813/github-push-error-rpc-failed-result-22-http-code-413 – Stony Jun 20 '17 at 01:26
  • In my case, we have a reverse proxy in front of GitLab, and the proxy has a small default size. Once we change that, all worked fine. – james.garriss Feb 18 '20 at 19:04
  • See this answer for the solution for this https://stackoverflow.com/a/60833201/1226748 – Jimmy Obonyo Abor Oct 23 '20 at 00:31

3 Answers3

7

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.

Javali
  • 352
  • 2
  • 9
2

It worked for me after deleting the whole repository.And committing all files to the repository.

Vivek Bhatt
  • 109
  • 1
  • 1
  • 4
-7

I fixed this issue for me by deleting the ".git" folder and adding the large folder into .gitignore and starting over from the init.