Re: [PATCH 0/11] Misc. pull/merge/am improvements
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 6 quoted lines
> 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