Process Flow - Rebase vs merge mental model
Start: Branch A and Branch B diverged
Option 1: Merge
Create a new merge commit
Branches combined with history preserved
End
Option 2: Rebase
Move Branch B commits on top of Branch A
Rewrite Branch B history
Linear history without merge commit
End
Shows two ways to combine branches: merge creates a new commit joining histories, rebase moves commits to create a straight line.