Command
Squash merge
Prepare combined changes without recording merge parents; commit separately.
Formal Syntax & Structure
git syntaxgit
git merge --squash BRANCHPrepare combined changes without recording merge parents; commit separately.
git merge --squash BRANCH