From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCH] checkout -d: explicitly detach HEAD even when switching to the tip of a branch
Date: Sat, 31 Mar 2007 02:11:45 +0200 [thread overview]
Message-ID: <euk8ps$vu1$1@sea.gmane.org> (raw)
In-Reply-To: 7vr6r879zp.fsf@assigned-by-dhcp.cox.net
Junio C Hamano wrote:
> 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
next prev parent reply other threads:[~2007-03-31 0:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-29 8:02 [PATCH] checkout -d: explicitly detach HEAD even when switching to the tip of a branch Junio C Hamano
2007-03-29 10:44 ` Xavier Maillard
2007-03-29 17:10 ` Alex Riesen
2007-03-29 20:54 ` Xavier Maillard
2007-03-31 0:11 ` Jakub Narebski [this message]
2007-03-31 14:55 ` Xavier Maillard
2007-04-04 0:11 ` Junio C Hamano
2007-04-04 1:55 ` Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='euk8ps$vu1$1@sea.gmane.org' \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.