I had something like this:
/-E-F - branch1
A-B-C - master
\-X - branch2
After I have rebased to B and changed it on the master branch I got something like this:
/-E-F - branch
A-B-C
\ \-X - branch2
\-B*-C* - master
After that I have tried to rebase and edit in the same way B on the “branch” and I got something like this:
/B**-C**-E-F - branch
A-B-C
\ \-X - branch2
\-B*-C* - master
My intentions was to edit B for all branches and get something like this:
/-E-F - branch1
A-B*-C - master
\-X - branch2
How can I fix it?
Thanks for help.
Assuming you can get back to the starting graph (take a look at commit recovery with reflog), it seems like it’d be easier to make the change to master and merge it (with –no-ff) into branch1 and branch2:
Otherwise: