Pascal Obry <pascal@xxxxxxxx> writes: >> Possible user errors I can think of are: >> ... > I'm not on this case. > ... > I'm not in this case either. Thenk there are some _other_ differences between your situation and what I can construct from your problem description: 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.... which I tried myself before giving you a reply, and I didn't end up on a detached HEAD. But I cannot guess what that difference you are not telling us is (and you probably don't know it either, I suspect). Writing reproducible test case would be a great way to diagnose this. -- 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