首页 > 解决方案 > GitHub 推送失败,RPC 失败;curl 55 SSL_write() 返回 SYSCALL,errno = 32

问题描述

我已经提交了我的工作,我想把它推送到我在 github 上的 repo 上

但推送失败并显示此错误:

error: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 32
fatal: the remote end hung up unexpectedly
Total 10 (delta 3), reused 0 (delta 0)
fatal: the remote end hung up unexpectedly
Done

我该如何解决?

标签: gitgithub

解决方案


首先检查您刚刚提交的工作是否使您的存储库太大而无法推送到 GitHub。

您可以使用github/git-sizer之类的工具来了解是什么占用了这么多空间。

如果你看到一个不应该存在的元素太大,请尝试删除它(在你现在.gitignore它之后,但它仍然是你过去提交历史的一部分)

为此,请使用git filter-repo(我在这里提到的)。

先安装它。( python3 -m pip install --user git-filter-repo)

然后,例如:

git filter-repo --strip-blobs-bigger-than 10M

推荐阅读