Skip to content

Instantly share code, notes, and snippets.

@lpranam
lpranam / squash.md
Last active March 19, 2024 08:36
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?