Re: How to restore the original head after `git-reset --hard master^`
- From
Junio C Hamano <junkio@cox.net>
- Date
- Oct 11, 2005, 21:37 UTC
- Message-ID
- <7vpsqbspjv.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <434BD65A.9000108@ust.hk>
Ben Lau <benlau@ust.hk> writes:
Show 7 quoted lines
> After involves the command `git-reset --hard master^` in a > repository, the working > tree , current head and index are restored to the parent of master. That > includes > the content of '.git/refs/head/master'. Although the original commit > object is still existed > , I couldn't find it back.
I think you can find it in .git/ORIG_HEAD.