git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Subject: git checkout won't detach head when a reference equals the detach point
Date: Sun, 18 Feb 2007 18:41:34 +0000	[thread overview]
Message-ID: <200702181841.36203.andyparkins@gmail.com> (raw)

Hello,

Kind of convoluted, and perhaps not even an error.

On a repository with a remote tracking branch, say 
remotes/origin/master, then do this:

git checkout -b temp origin/master
git checkout origin/master
git branch
 * temp

This might seem like an odd thing to want to do, but I found this 
because the next thing I wanted to do was

git branch -D temp

Which won't work because the branch hasn't changed.




Andy
-- 
Dr Andrew Parkins, M Eng (Hons), AMIEE
andyparkins@gmail.com

                 reply	other threads:[~2007-02-18 18:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200702181841.36203.andyparkins@gmail.com \
    --to=andyparkins@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).