Stage combined branch changes without creating a merge commit.
Section: Merge, Rebase, and Commit Selection
Squash merge
bash
bash
git merge --squash feature/my-changeLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Merge, Rebase, and Commit Selection