Re: master^ is not a local branch -- huh?!?
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Jan 29, 2010, 21:32 UTC
- Message-ID
- <fabb9a1e1001291332w1d161f8at58aa6fe6908bd77f@mail.gmail.com>
- In-Reply-To
- <alpine.LFD.2.00.1001291628510.1681@xanadu.home>
Heya,
On Fri, Jan 29, 2010 at 22:29, Nicolas Pitre <nico@fluxnic.net> wrote:
> Then who was arguing about making Git more user friendly rather > then less?
Using a detached head is a more advanced feature than wanting to checkout a remote branch locally, creating a local tracking branch. As such, 'git checkout origin/topic' now means the same as 'git checkout -t origin/topic', and you can get the old behavior back by doing 'git checkout origin/topic^0'. I don't see what the problem is, if you're using a detached head you're an advanced enough git user that you can remember that you can use '^0' to detach your head. It's not all that uncommon to do 'git checkout HEAD^0' to detach your head to the current branch, no?
-- Cheers, Sverre Rabbelier