Re: [PATCH] Detached HEAD (experimental)
- From
Jeff King <peff@peff.net>
- Date
- Jan 10, 2007, 14:04 UTC
- Message-ID
- <20070110140432.GA20868@coredump.intra.peff.net>
- In-Reply-To
- <Pine.LNX.4.64.0701091539050.3594@woody.osdl.org>
On Tue, Jan 09, 2007 at 03:46:32PM -0800, Linus Torvalds wrote:
> I would suggest a solution: > > - git checkout will refuse to switch AWAY from a detached head unless the > SHA1 of the detached head exactly matches some other branch.
What about
git checkout HEAD~20
I agree that checking out tags will be more common, but it feels like we are discouraging this usage by presenting spurious warning messages.
-Peff