Re: Question about git rebase --onto

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pascal Obry <pascal@xxxxxxxx> writes:

> It seems to me that:
>
>    $ git co topic
>    $ git rebase --onto master topic~2 topic
>
> Used to do the job and rebase the topic branch as expected. Today when I
> tried with 1.7.0.rc1.10.gb8bb after the rebase above I was left on a
> detached head.
>
> Is my recollection wrong? Has this been changed recently?

Either a recent bug or a user error, I think, as we didn't intend to
change.  My quick manual test didn't show such a bug but rebase is one
of the areas that acquired new code recently.

Possible user errors I can think of are:

 - If 'topic' is not a local branch, the result will be on a detached
   HEAD, as you are starting from a detached HEAD (i.e. 'topic' could be a
   tag);

 - Until you resolved and said "rebase --continue" (or --skip) to allow it
   to conclude the rebase when the operation conflicted, you would be on a
   detached HEAD.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]