Git rebase, omita merge-commits
Empezando con
hack---F1----M1----F2 (feature)
/ /
C1-----C2----C3 (master)
Me gustaría terminar con
hack---F1----M1----F2 (feature)
/ /
C1-----C2----C3---F1'---F2' (master)
Hasta ahora lo mejor que tengo es
git checkout feature
git checkout -b temp
git rebase -i --onto master hack temp
* Big drawback: manually remove the merged-in C2 and C3 from list of commits *
git checkout master
git merge temp
git branch -d temp
Espero que alguien pueda responder a pesar de que este es un flujo de trabajo dudoso.