我创建了一个全新的heroku应用程序,之前我从应用程序的目录中删除了旧的.git文件,并使用通常的步骤创建了一个新文件:
git init, git add ., git commit -m "new git"
所有这些都很好。然后我创建了一个新的应用程序,并得到以下错误:
$ heroku create
Creating glowing-summer-56.... done
Created http://glowing-summer-56.heroku.com/ | git@heroku.com:glowing-summer-56.
git
Git remote heroku added
$ git push heroku master
Counting objects: 1553, done.
Delta compression using up to 4 threads.
fatal: object 91f5d3ee9e2edcd42e961ed2eb254d5181cbc734 inconsistent object lengt
h (387 vs 8985)
error: pack-objects died with strange error
error: failed to push some refs to 'git@heroku.com:glowing-summer-56.git'
这对我来说很奇怪,因为它是一个全新的.git文件。如何在不清理每个受损物体的情况下摆脱这种情况?有没有办法只删除git文件并重新开始?除了推送到heroku之外,我没有将这个git文件用于任何。
另外我应该注意到我在Windows上使用Cygwin,我的git版本是1.6.6.1
我之前遇到过这个错误并修复过它,老实说我真的不记得了。
最后,使用git fsck --full不会产生任何结果:(
谢谢,
答案 0 :(得分:0)