AI engineering glossary · Command line Git

What is squash?

Squash: Combining several commits into one, either during interactive rebase or when merging a pull request. It produces a shorter, cleaner history by hiding messy intermediate commits like fixes and typos.

Level: intermediateTopic: Command line Git

Squash: an example

Five work-in-progress commits on a branch are squashed into one titled Add data validation.

Related terms

More Command line Git terms

Where you learn it

Squash is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.