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?
when I used the https url to push to the remote master, I met the same proble, I changed it to the SSH address, and everything resumed working flawlessly.
The error occurs in 'libcurl', which is the underlying protocol for https upload. Solution is to somehow updgrade libcurl. To get more details about the error, set GIT_CURL_VERBOSE=1
https://confluence.atlassian.com/pages/viewpage.action?pageId=306348908
Meaning of error, as per libcurl doc: CURLE_HTTP_RETURNED_ERROR (22)
This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server returns an error code that is >= 400.
http://curl.haxx.se/libcurl/c/libcurl-errors.html
I had the same issue (on Win XP), I updated the libcurl-4.dll file in my Git bin directory to the SSL version from http://www.paehl.com/open_source/?download=curl_DLL_ONLY.7z (renaming to libcurl4.dll). All working ok now.
Was facing same issue. In my case it was non-compatible GIT versions across multiple users who are accessing(pull/push) same project.
have just updated GIT version and updated the path on Android studio settings and its working fine for me.
Edit -
Git for Windows (1.9.5) having some problem, updating the same may helps.
Need to change remote url to ssh or https
or
Hope, this will help :)