gh pr merge <number | url | branch>

Merge a pull request

Arguments

NameDescription
number | url | branch

Options

NameDescription
-d, --delete-branchDelete the local and remote branch after merge
-m, --mergeMerge the commits with the base branch
-r, --rebaseRebase the commits onto the base branch
-s, --squashSquash the commits into one commit and merge it into the base branch