I’ve initially had two branches:
master A---B---C
\
fork D---E---F---H---I
So I wanted to get my fork branch to be merged to master at F, without merging D and E. So it becomes:
master A---B---C-------F---H---I
\
fork D---E
And then I would like to be able to rebase the fork to master, so it becomes:
master A---B---C-------F---H---I
\
fork D---E
(Not sure about the lettering, or should it become D’ and E’ and have the old ones stay after C)
So I searched around and found that I can branch my fork at “I” and then hard reset it, but it became even more complicated:
master A---B---C
\
fork D---E
\
to-merge F---H---I
(I’m at this point now)
Please, help a noob at branching to make it work. Even it I end up with something like this:
master A---B---C-------F---H---I
\ / \
fork D---E D'--E'
I don’t want to merge D and E to the master at all.
If it’s only 3 commits, it might be simplest to just cherry-pick them into your master branch.