Menu
Writing & Content

Coding & Git

Rebase

Also called git rebase.

In plain English

Rebase replays commits onto another starting point, so they sit on top of a different commit.

Example

Your branch started from last week's main. You rebase it onto today's main so your commits play after the newer work. A teammate who already pulled the old commits then sees a different history.

Why it matters

People often rebase to bring a branch up to date with newer work. The new starting point does not have to be main. Rebase rewrites the commits it replays.

If other people already have the old commits, rewriting that shared history forces them to reconcile the rewritten commits. That is the risk, not a reason to treat rebase as only an update against main.

Common confusion

Rebase is not limited to main, and it is not the same operation as merge. Both can stop on a merge conflict.

Sources

Updated September 30, 2026.

Cookie preferences