git - 将大型提交推送到 GitHub 会导致致命写入错误 : Bad file descriptor

标签 git github https

我正在使用 GitHub 管理我的存储库,但在尝试推送大型提交 (1.5 GB) 时遇到以下错误。

error: pack-objects died of signal 9
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
fatal: write error: Bad file descriptor

有什么解决办法吗?

最佳答案

我在使用 git pack 文件时遇到了这个问题。为了解决这个问题,我重新包装并指定了包装的最大尺寸。

git repack --max-pack-size=100M -a -d

关于git - 将大型提交推送到 GitHub 会导致致命写入错误 : Bad file descriptor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20561940/

相关文章:

git - 运行错误 'git apply'

git - 在 Windows 上将 10 年老项目从 svn 迁移到 git 的建议

git - 来自 Github 的 hg-git 克隆给出 "abort: repository is unrelated"

github - Google Cloud Build/GitHub 中的无效参数错误

混帐添加。错误 : insufficient permission for adding an object to repository database . git/对象

git - 如何将一个分支的内容复制到另一个分支?

git - 是否有包含 merge (仅)和非 merge 提交的 `git log` 摘要?

apache - 除了Apache中的几页之外,如何强制重写为HTTPS?

apache - 我如何强制所有流量到 https?

https - 证书中的主机名与 :<>! =<> WSO2 APIM 不匹配