Squash merge and delete the branch.
Section: Reviews and Merge
Squash merge a PR
bash
bash
gh pr merge 123 --squash --delete-branchExplanation
Squash merge and delete the branch.
Learn 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 Reviews and Merge