Rebase
In plain terms
Replaying your commits on top of another branch to keep history linear.
Going deeper
Rebasing moves your branch's changes to start from the latest target branch, producing a clean, straight history instead of a merge commit. Powerful but should be avoided on shared branches.
Under the hood
Rewrites commit history for a linear log; powerful for cleanup but dangerous on shared branches (the golden rule: don't rebase public history).
Examples
git rebase main, interactive rebase to squash, replaying commits.
Think of it like...
Like lifting your new paragraphs and re-inserting them after the latest version of the chapter, so the story reads in one smooth line.