Skip to content

Instantly share code, notes, and snippets.

@lpranam
lpranam / squash.md
Last active October 26, 2024 17:20
How to squash commits

What is squashing?

Squashing is a process in which we squeeze multiple commits into one pretending it is only a single commit.

Basically squashing commits means we are rewriting the history of commits to make them look like single commit.

squash-diagram.jpg

Why squashing commits is necessary?