我的工作git存储库已损坏,它会丢失其中的所有文件,即
$ git log fatal: bad default revision 'HEAD'
$ git status ... told me that all the files are new
但是.git目录确实包含我的对象.
$ du -sh .git 34M .git
$ git count-objects 4151 objects, 32692 kilobytes
$ git --version git version 1.6.0.4
我记得在它出错之前做的最后一件事是在NFS挂载的服务器上创建(clone --mirror)备份存储库.但是,克隆的备份存储库以相同的方式被破坏.
如何恢复我的存储库?