git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git checkout won't detach head when a reference equals the detach point
@ 2007-02-18 18:41 Andy Parkins
  0 siblings, 0 replies; only message in thread
From: Andy Parkins @ 2007-02-18 18:41 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-18 18:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-18 18:41 git checkout won't detach head when a reference equals the detach point Andy Parkins

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).