From: Alex Riesen Date: Thu, 01 Feb 2007 09:54:56 GMT Subject: Re: [PATCH] detached HEAD -- finishing touches Message-ID: <81b0412b0702010154v47b290act4e1c8d3722d23dd3@mail.gmail.com> In-Reply-To: <81b0412b0702010153m301a3603idc182df8abbf89a@mail.gmail.com> On 2/1/07, Alex Riesen wrote: > On 2/1/07, Junio C Hamano wrote: > > [git.git (master)]$ git checkout master^ > > M git-checkout.sh > > Note: you are not on any branch and are at commit "master^" > > If you want to create a new branch from this checkout, you may do so > > (now or later) by using -b with the checkout command again. Example: > > git checkout -b > > How do you detach HEAD _without_ changing working tree at all? > IOW, is there a "git checkout --detach"? > Ah.. I see, the "obscure, but useful trick".