git merge --squash feature-xyz

Category: Git - Core

git merge --squash feature-xyz

Squash all branch commits into a single staged change

Combines all commits from the feature branch into a single uncommitted change, ready for you to commit as one.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.