10 · Version Control

Squash

Combine many commits into one

Flattening a messy run of work-in-progress commits into one clean commit — most often done automatically when merging a pull request.

Concrete example

Twelve “wip” commits on your branch become one tidy commit on main via a squash-merge.