简体   繁体   English

Git push heroku master失败,并显示“远程:致命:早期EOF错误:解包失败:索引包异常退出”

[英]Git push heroku master fails with “remote: fatal: early EOF error: unpack failed: index-pack abnormal exit”

Beginner here stumped as to why my git pushes to Heroku are failing all of a sudden: 对于为什么我的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)

...now it hangs for ~15 minutes and then: ...现在挂起约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)

Tried again a few times to no avail. 再次尝试了几次都无济于事。 Also tried restarting the dyno and heroku repo:rebuild but still no luck. 还尝试重新启动dyno和heroku repo:rebuild,但仍然没有运气。 I am running this from an Ubuntu instance on Cloud9 IDE and the repo is here: https://github.com/101291/pinteresting (pushes to Github are working fine). 我正在Cloud9 IDE上的Ubuntu实例上运行此程序,仓库在这里: https : //github.com/101291/pinteresting (对Github的推送正常工作)。

Any help would be much appreciated! 任何帮助将非常感激!

Thanks 谢谢

I had the same issue (I was trying to push what turned out to be really large files!) and what fixed it was: git push heroku master --no-thin 我遇到了同样的问题(我试图将原来是很大的文件推入!),并且修复了以下问题: git push heroku master --no-thin

If you're interested, here is a brief explanation from the git docs : 如果您有兴趣,这里是git docs的简要说明:

--[no-]thin These options are passed to git-send-pack 1 . -[no-] thin这些选项传递给git-send-pack 1 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. 默认值为--thin。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM