{"thread":{"id":"6870","subject":"git checkout won't detach head when a reference equals the detach point","startedAt":"2007-02-18T18:41:34Z","lastAt":"2007-02-18T18:41:34Z","messageCount":1,"participants":["Andy Parkins"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"34964","messageId":"200702181841.36203.andyparkins@gmail.com","threadId":"6870","inReplyTo":null,"subject":"git checkout won't detach head when a reference equals the detach point","fromName":"Andy Parkins","fromEmail":"andyparkins@gmail.com","sentAt":"2007-02-18T18:41:34Z","receivedAt":"2007-02-18T18:41:34Z","isPatch":false,"sender":{"key":"andyparkins@gmail.com","avatar":null},"body":"Hello,\n\nKind of convoluted, and perhaps not even an error.\n\nOn a repository with a remote tracking branch, say \nremotes/origin/master, then do this:\n\ngit checkout -b temp origin/master\ngit checkout origin/master\ngit branch\n * temp\n\nThis might seem like an odd thing to want to do, but I found this \nbecause the next thing I wanted to do was\n\ngit branch -D temp\n\nWhich won't work because the branch hasn't changed.\n\n\n\n\nAndy\n-- \nDr Andrew Parkins, M Eng (Hons), AMIEE\nandyparkins@gmail.com\n"}]}