Git push error: RPC failed; result=56, HTTP code =

2019-01-21 13:56发布

While doing git push, I receive this error:

Username for 'https://github.com': Newbie
Password for 'https://Newbie@github.com':
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 git push error: RPC failed; result=56, HTTP code = 0

Please can anyone help me out with this?

8条回答
可以哭但决不认输i
2楼-- · 2019-01-21 14:25

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.

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-01-21 14:25

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.

查看更多
等我变得足够好
4楼-- · 2019-01-21 14:26

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

git config --global http.postBuffer 157286400
查看更多
Evening l夕情丶
5楼-- · 2019-01-21 14:27

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

查看更多
仙女界的扛把子
6楼-- · 2019-01-21 14:27

You can try gem install before install pod. So following commands you should write on terminal:

  1. sudo gem install cocoapods

after install completed:

  1. install pod

it might be a solution for you which worked well for me.

查看更多
叛逆
7楼-- · 2019-01-21 14:40

Try re-initializing your git repository: git init

查看更多
登录 后发表回答