Software Engineering KB

Home

❯

06 Development Process

❯

00 Version Control

❯

01 Concept

❯

Squash Merge

Squash Merge

Feb 10, 20261 min read

  • git
  • merging
  • squash

Squash Merge

← Back to Branching and Merging

Compress an entire branch into a single commit on the target branch. Produces the cleanest main history but loses individual commit history from the branch. Good when branch commits are messy but the overall change is cohesive.

Key Properties

  • Single Commit Result
  • Clean Main History
  • Lost Branch History

Related

  • Merge Commits (preserves all history)
  • Rebase (preserves individual commits)

git merging squash


Graph View

  • Squash Merge
  • Key Properties
  • Related

Backlinks

  • Branching and Merging
  • Merge Commits

Created with Quartz v4.5.2 © 2026

  • GitHub