On Wed, 24 Jun 2015 10:13:22 -0700 (PDT)
Konrád Lőrinczi <klorin...@gmail.com> wrote:

> How to rebase the following commits?
> I have:
> A---B---C  orig
> D---E---F  dev

Does simple

  git rebase --root --onto orig dev


I've just recreated such a history, and it works for me:

foo% git slog orig
272fee5 C
081df92 B
a75960c A
foo% git slog dev
a3c7485 F
3217145 E
962c0e8 D
foo% git rebase --root --onto orig dev
First, rewinding head to replay your work on top of it...
Applying: D
Applying: E
Applying: F
foo% git slog dev
ae40dbd F
856ba3c E
3fb1f7a D
272fee5 C
081df92 B
a75960c A

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to