What is rebase in Git?

Rebasing moves your branch so it starts from the newest main. Your commits are replayed on top, as if you had started today.

In one line
Replay your work on latest main.
Part of
Git & GitHub: How code is saved, shared and reviewed.

The full Rebase page

Open Rebase in the appFull basics lessons require a paid plan.

More in Git & GitHub11

How code is saved, shared and reviewed.

Pick your first three.