git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Question] Git recovery with HEAD commit broken
@ 2013-12-11 14:38 Shilong Wang
  2013-12-11 15:01 ` Matthieu Moy
  0 siblings, 1 reply; 4+ messages in thread
From: Shilong Wang @ 2013-12-11 14:38 UTC (permalink / raw)
  To: git; +Cc: Wang Shilong

I am not a developer for git, but i am a regular user with git, i came
the following problem:

A power off cause my top commit broken, and then git
branch/log/reflog..etc won't work.
I do a hack that i change the HEAD commit to the one that i can make
sure is right, and then
i do:

# git reset --hard HEAD

In fact, i hope git fsck can fix up such problems(maybe can backup top
commit for example)...
Someone has faced such problems or have some suggestion for this?

Thanks,
Wang

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-11 19:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11 14:38 [Question] Git recovery with HEAD commit broken Shilong Wang
2013-12-11 15:01 ` Matthieu Moy
2013-12-11 16:14   ` Joey Hess
2013-12-11 19:12     ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).