Rebase

Verb · Development

Definitions

  1. A Git operation (git rebase) that replays the commits from one branch onto a new base commit, rewriting commit hashes to produce a linear history. Interactive rebase (git rebase -i) additionally allows squashing, reordering, editing, or dropping commits before they are reapplied.

    In plain English: Moving your branch's changes so they sit on top of the latest code, as if you started your work from the current version instead of an older one.

    Example: "Rebase your feature branch onto main before opening the PR — we want a clean linear history, not a merge commit."

Related Terms