Re: [PATCH] Proof-of-concept patch to remember what the detached HEAD was
- From
Nicolas Pitre <nico@fluxnic.net>
- Date
- Oct 16, 2009, 15:44 UTC
- Message-ID
- <alpine.LFD.2.00.0910161137540.20122@xanadu.home>
- In-Reply-To
- <alpine.LNX.2.00.0910160128400.32515@iabervon.org>
On Fri, 16 Oct 2009, Daniel Barkalow wrote:
> What's the state before the "git checkout HEAD~2"?
It is HEAD@{1}.> I know I often find my git.git repos on "* (no branch)", and I don't > remember if I checked that out as origin/master or origin/next.
Just have a look at the output of "git reflog". Pretty unambiguous IMHO.
Nicolas