IT lexicon › Programming › Fast-forward

Fast-forward

Programming På svenska → Updated: 2026-11-13

A merge that simply moves a branch pointer forward when the target branch has no new commits.

A fast-forward merge happens when the feature branch is a direct descendant of main—main hasn't developed further since the feature branched off. Git can simply slide the main pointer forward without creating a merge commit or resolving any conflicts. This yields a linear history, which many teams prefer for readability. The downside: you lose the commit that records when the feature was integrated, making history harder to parse later. Git's --no-ff flag forces a merge commit even when a fast-forward is possible, trading linearity for explicitness.

← Back to the lexicon