From: Junio C Hamano Date: Fri, 29 Dec 2006 17:53:59 GMT Subject: Re: [PATCH 0/11] Misc. pull/merge/am improvements Message-ID: <7vtzzeoafc.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > On Thu, 28 Dec 2006, Junio C Hamano wrote: > >> Although I do find the detached HEAD attractive [...] > > You do mean "git fetch --depth 0", don't you? (Totally untested, of > course.) No, what I meant was $ git checkout v1.5.0 Checking out a tag -- you are not on any branch now... $ ls -l .git/HEAD -rw-rw-r-- 1 junio junio 41 2006-12-29 09:51 .git/HEAD $ git branch master $ git commit -m 'fix' -a; echo $? You cannot commit without the current branch. 0 $ git checkout -b maint-1.5.0 $ git commit -m 'fix' -a