Git push error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal

GitGithubWindows 7-X64

Git Problem Overview


While doing git push, I receive this error:

Username for 'https://github.com': Newbie
Password for 'https://[email protected]':
Counting objects: 11507, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8210/8210), done.
Writing objects: 100% (11506/11506), 21.75 MiB | 0 bytes/s, done.
Total 11506 (delta 2213), reused 11504 (delta 2211)
efrror: RPC failed; result=56, HTTP code = 200
atal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

I also tried doing: git config http.postBuffer 524288000, but still error.. Also tried: git config --global http.postBuffer 2M by referring on https://stackoverflow.com/questions/22005259/git-push-error-rpc-failed-result-56-http-code-0

Please can anyone help me out with this?

Git Solutions


Solution 1 - Git

Look here: https://flyingtomoon.com/2011/04/12/git-push-is-failed-due-to-rpc-failure-result56/

The problem is most likely because your git buffer is too low.

You will need to increase Git’s HTTP buffer by setting the git config var “http.postBuffer” to 524288000.

git config http.postBuffer 524288000

Solution 2 - Git

Increase the Git buffer size to the largest individual file size of your repo:

git config --global http.postBuffer 157286400

Solution 3 - Git

This error was caused by my corporate Firewall.

Solution 4 - Git

I faced a similar issue. When I was trying to push my branch to remote, I was seeing this error: >error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

In my case, this issue was caused due to a proxy that I was connected to. I disconnected the VPN connection and tried to push my changes again and that worked.

Solution 5 - Git

Try re-initializing your git repository: git init

Solution 6 - Git

It will work after increasing Git’s HTTP buffer by setting the git config var http.postBuffer to 524288000.

git config http.postBuffer 524288000

Solution 7 - Git

This happened to me when I was cloning a git repo that was taking a long time. I went to do something else and my computer went to sleep, terminating the connection. Turning off auto sleep on my computer worked for me.

Solution 8 - Git

Poor network connection was the issue for me. Check your internet strength.

Solution 9 - Git

I was running into a very similar issue, though I was deploying to an Azure Web App via a git push. I received this error:

RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
The remote end hung up unexpectedly

The solution for me was to change my deployment environment from a Macbook to a Windows desktop. See this answer for full details.

Solution 10 - Git

Try building git using openssl libraries. Refer to this post. You may have to compile git in Windows. I hope that helps.

Solution 11 - Git

You can try this, maybe this code is working

git config http.sslVersion tlsv1.2

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNewbieView Question on Stackoverflow
Solution 1 - GitJames ShiView Answer on Stackoverflow
Solution 2 - GitVijay ChauhanView Answer on Stackoverflow
Solution 3 - GitDBDView Answer on Stackoverflow
Solution 4 - GitGeekyDeveloperView Answer on Stackoverflow
Solution 5 - GitNIKHIL NAGRALEView Answer on Stackoverflow
Solution 6 - GitMohammad ParvezView Answer on Stackoverflow
Solution 7 - GitMichael M.View Answer on Stackoverflow
Solution 8 - GitFarwaView Answer on Stackoverflow
Solution 9 - GitTod BirdsallView Answer on Stackoverflow
Solution 10 - GitDamian NadalesView Answer on Stackoverflow
Solution 11 - Gitjay varmoraView Answer on Stackoverflow