What does `git rebase --rebase-merges` change?
AdvancedConceptMerge, rebase and cherry-pick
Answer
By default rebase flattens merge commits away. --rebase-merges (successor of --preserve-merges) recreates the merge topology by replaying merges with label, reset and merge todo commands. Use it when you must rebase a branch that contains meaningful internal merges.
More on Merge, rebase and cherry-pick
What is the difference between a fast-forward merge and a merge commit?BeginnerHow does a three-way merge work?IntermediateWhat does `git rebase` actually do?IntermediateMerge versus rebase: how do you decide?IntermediateWhat are squash merge, merge commit and rebase-and-merge on GitHub?IntermediateWhy does a squash-merged branch show as unmerged to `git branch --merged`?Intermediate