Process Flow - Why rebasing creates linear history
Start with branch feature
Identify commits on feature
Find base commit on main
Reapply feature commits on top of main
Result: feature branch commits follow main commits
Linear history achieved
Rebasing takes your feature commits and places them on top of the latest main branch commits, making the commit history a straight line.