GitHub CLI 2 cheatsheet
GitHub CLI 2: Pull requests
7 common GitHub CLI 2 tasks.
Create a pull request
Open a pull request for the current branch, filling the title and body from your commits.
gh pr create --fill
Squash-merge and delete the branch
Merge a pull request as a single commit and delete its branch.
gh pr merge 123 --squash --delete-branch
Caution: Merging changes the base branch for everyone. Check the checks and reviews first.