Re: [PATCH 5/5] docs/checkout: clarify what "non-branch" means
- From
Jeff King <peff@peff.net>
- Date
- Apr 15, 2009, 18:00 UTC
- Message-ID
- <20090415180059.GG23332@coredump.intra.peff.net>
- In-Reply-To
- <gs1sgq$99e$1@ger.gmane.org>
On Tue, Apr 14, 2009 at 01:36:58PM +0200, Jakub Narebski wrote:
Show 7 quoted lines
> > In this vein, I suggest that > > $ git checkout --detach master > > as a way to get a detached HEAD on branch master is more understandable than > > $ git checkout refs/heads/master > > To detach, use > $ git checkout master^0
I have often though a "--detach" would be useful, just because the ref^0 syntax is so mysterious (and yes, _I_ know what it does, but explaining why it works to a novice git user is just painful).
-Peff