[Question] Git recovery with HEAD commit broken

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]