IT lexicon › Programming › git rebase

git rebase

Programming På svenska → Updated: 2026-05-23

Rewrite Git history — move commits, combine them, change order.

Alternative to merge: git rebase main places your feature branch on top of main instead of creating a merge commit. Interactive (-i) lets you squash, edit, drop. Never rebase shared branches — only your own.

← Back to the lexicon