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

前端 未结 10 1688
执念已碎
执念已碎 2020-12-07 16:24

While doing git push, I receive this error:

Username for \'https://github.com\': Newbie
Password for \'https://Newbie@github.com\':
Counting objects: 11507,          


        
相关标签:
10条回答
  • 2020-12-07 17:06

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

    git config --global http.postBuffer 157286400
    
    0 讨论(0)
  • 2020-12-07 17:08

    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.

    0 讨论(0)
  • 2020-12-07 17:14

    Try re-initializing your git repository: git init

    0 讨论(0)
  • 2020-12-07 17:16

    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
    
    0 讨论(0)
  • 2020-12-07 17:19

    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.

    0 讨论(0)
  • 2020-12-07 17:22

    This error was caused by my corporate Firewall.

    0 讨论(0)
提交回复
热议问题