How to rebase a topic branch from one branch to another
Parfois on souhaite rebase une branche de feature ou de topic depuis une branche vers une autre
Par exemple on souhaite rebase les commit H, I et J de la branche Topic B branche sur la branche master
H---I---J topicB
/
E---F---G topicA
/
A---B---C---D master
Pour cela on utilise rebase --onto <destination> <from> <to>
git rebase --onto master topicA topicB
ce qui va donner le résultat suivant :
H'--I'--J' topicB
/
| E---F---G topicA
|/
A---B---C---D master
On retrouve tout ça dans la doc de git… mais j’oublie toujour comment le faire. https://git-scm.com/docs/git-rebase