Re: [PATCH] checkout -d: explicitly detach HEAD even when switching to the tip of a branch
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Mar 31, 2007, 00:11 UTC
- Message-ID
- <euk8ps$vu1$1@sea.gmane.org>
- In-Reply-To
- <7vr6r879zp.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 7 quoted lines
> You cannot currently checkout the tip of an existing branch > without moving to the branch. > > This allows you to detach your HEAD and place it at such a > commit, with: > > $ git checkout -d master
What about
$ git checkout master^0
trick to force detaching?
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git