检索损坏的git提交

时间:2013-06-28 09:19:33

标签: git corruption

由于电源问题,我的git存储库在经过几次硬重启后损坏了,现在我无法修复它并且在验证日志文件后(在.git\logs\refs\heads中)我看到了我的分支提交:

0000000000000000000000000000000000000000 2af7fde85969d445579df272716e8d78db9 user <user_mail> 1372352519 +0100  branch: Created from branch refs/heads/master
null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null

我已验证日志并将与我的提交相关的行复制到损坏的文件中并用此替换空值

2af7fde85969d445579df272716e8d78db9 6c668139241332dbc7c7462a49978006de0 user <user_mail> 1372352552 +0100   commit: assignement report not verified

我已经恢复了Eclipse并切换到我的上一次提交,我总是有同样的错误::

Branch failed
Object 6c668139241332dbc7c7462a49978006de0 is corrupt: invalid type

所以,正如你所看到的,我目前的分支已经搞砸了,我似乎无法修复它。有什么想法我可以尝试修复它吗?

0 个答案:

没有答案