我不能再 git push 到 github: error: RPC failed; curl 55 发送失败:连接被中止

问题描述

从昨天开始我就不能再用git push我的工作了。

当我推送时,它开始推送,不到一分钟后它在 intellij 中给了我这个错误

Push Failed Delta compression using up to 4 threads Total 260 (delta 20),reused 1 (delta 0),pack-reused 0 RPC Failed; curl 55 Send failure: Connection was aborted the remote end hung up unexpectedly the remote end hung up unexpectedly

Github Desktop 给了我:

Writing objects: 100% (259/259),15.10 MiB | 9.98 MiB/s                         
Writing objects: 100% (259/259),15.81 MiB | 8.97 MiB/s,done.
Total 259 (delta 20),reused 0 (delta 0)
error: RPC Failed; curl 55 Send failure: Connection was aborted
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

我尝试使用 git bash 也发生了同样的错误

$ git push
Enumerating objects: 270,done.
Counting objects: 100% (270/270),done.
Delta compression using up to 4 threads
Compressing objects: 100% (243/243),done.
Writing objects: 100% (260/260),15.81 MiB | 10.94 MiB/s,done.
Total 260 (delta 20),pack-reused 0
error: RPC Failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

我该如何解决这个问题?

解决方法

哇,我与上传速度非常低的 ADSL 断开连接,并通过我的手机互联网连接,上传速度不错。推送成功。说真的,这到底是怎么回事。所以上传速度低的人都被搞砸了。