Branch history before rebase is following:
$ git log orig --oneline
61ef11b C
0458ee6 B
e714739 A

$ git log dev --oneline
4f9a02e F
69eabea E
dbdf75f D



2015. június 24., szerda 20:06:52 UTC+2 időpontban Konrád Lőrinczi a 
következőt írta:
>
> $ git rebase --root --onto orig dev
> First, rewinding head to replay your work on top of it...
> Applying: E
> Applying: F
>
>
> The result is:
> A---B---C  orig
>             \ 
>               E---F  dev
> Still missing the "D" root of dev.
>
>
>
> 2015. június 24., szerda 20:01:17 UTC+2 időpontban Konstantin Khomoutov a 
> következőt írta:
>>
>> On Wed, 24 Jun 2015 10:13:22 -0700 (PDT) 
>> Konrád Lőrinczi <klor...@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 
>>
>> work? 
>>
>> 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