Tuesday, 19 May 2015

git–push large commits over http fail

Problme, exception, Error: git–push large commits over http fail

If you are facing this issue with git:

error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
Problem: 
If we made commit with large files size or large amount of data in a single commit, then it may cause that error.
This issue might also come with HTTP github repository url, that we are using to clone the repo.

Solution:
We can increase buffer size to solve large amount of data issue or increase the nginx buffer size by the parameter "client_max_body_size".

If we don't have large amount of data and still we are facing this issue, so replace your github HTTP protocol with SSH protocol or replace HTTP to HTTPS in that url.



No comments:

Post a Comment