git对象腐败和datastream数据错误 - git object corruption and datastream error

- 此内容更新于:2016-02-03
主题:

gitfsck,全部返回git显示返回gitcat-file-t072de66fc返回没有。git/对象/包文件夹。我试着交叉引用多个问题但我似乎并没有得到任何有用的信息。这是可能的腐败是因为硬盘失败,但我不知道如何恢复或类似的东西。在这种情况下我该怎么办?

原文:

git fsck --full returns

error: Invalid HEAD
Checking object directories: 100% (256/256), done.
error: inflate: data stream error (unknown compression method)
error: unable to unpack 072de66fc...
error: inflate: data stream error (unknown compression method)
fatal: loose object 072de66fc... (stored in .git/objects/07/2de66fc...) is corrupt

git show returns

fatal: bad default revision 'HEAD'

git cat-file -t 072de66fc returns

error: inflate: data stream error (unknown compression method)
error: unable to unpack 072de66fc... header
fatal: git cat-file 072de66fc: bad file

there is no .git/objects/pack folder. I've tried cross-referencing multiple questions but I don't seem to be getting any useful information. It's possible that this corruption happened because of a hard disk failure, but I have no idea how to restore it or anything like that. What do I do in this situation?