git - 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
我该如何解决?
解决方案
首先检查您刚刚提交的工作是否使您的存储库太大而无法推送到 GitHub。
您可以使用github/git-sizer之类的工具来了解是什么占用了这么多空间。
如果你看到一个不应该存在的元素太大,请尝试删除它(在你现在.gitignore
它之后,但它仍然是你过去提交历史的一部分)
为此,请使用git filter-repo
(我在这里提到的)。
先安装它。( python3 -m pip install --user git-filter-repo
)
然后,例如:
git filter-repo --strip-blobs-bigger-than 10M
推荐阅读
- json - 使用 JSON-API 获取的字符串将在 Swift 中从 base64 转换为 UTF8
- assembly - 将单词的每个字符替换为该单词中的大写字符数
- heatmap - BPMN.IO 和 Heatmap.js 之间的对齐问题
- aws-lambda - 对 AWS Lambda 的并发请求
- python - 重新格式化 SymPy 中的表达式以防止常数系数的分布
- android - RxJava 并行发出一次
- python - 将 panda 中一列的多行整理为一行,同时保持该列的数据类型
- html - 如何从我的帖子页面隐藏日期部分?
- c - Deflate 格式:类型块之间的差异
- node.js - 通过 process.env 为整个脚本设置环境变量