Git push heroku master fails with "remote: fatal: early EOF error: unpack failed: index-pack abnormal exit"

Git push heroku master fails with "remote: fatal: early EOF error: unpack failed: index-pack abnormal exit"

这里的初学者对为什么我的 git 推送到 Heroku 突然失败感到困惑:

a101291@pinteresting:~/workspace (master) $ git push heroku master
Counting objects: 2043, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1997/1997), done.
Writing objects: 100% (2021/2021), 35.58 MiB | 4.20 MiB/s, done.
Total 2021 (delta 847), reused 0 (delta 0)

...现在它挂起约 15 分钟,然后:

remote: fatal: early EOF
error: unpack failed: index-pack abnormal exit
To https://git.heroku.com/omr101291.git
 ! [remote rejected] master -> master (unpacker error)

又试了几次都没用。还尝试重新启动 dyno 和 heroku repo:rebuild 但仍然没有成功。我是来自 Cloud9 IDE 上的 Ubuntu 实例的 运行 并且存储库在这里:https://github.com/101291/pinteresting (推送到 Github 工作正常)。

如有任何帮助,我们将不胜感激!

谢谢

我遇到了同样的问题(我试图推送原来是非常大的文件!)以及修复的问题: git push heroku master --no-thin

如果您有兴趣,这里有来自 git docs 的简要说明:

--[no-]thin These options are passed to git-send-pack1. A thin transfer significantly reduces the amount of sent data when the sender and receiver share many of the same objects in common. The default is --thin.