Skip to content

Instantly share code, notes, and snippets.

View bryangarza's full-sized avatar

Bryan Garza bryangarza

View GitHub Profile
@bryangarza
bryangarza / squash.md
Created December 27, 2022 21:49 — forked from lpranam/squash.md
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?