gh pr merge <number | url | branch>
Merge a pull request
Arguments
Name | Description |
---|---|
number | url | branch |
Options
Name | Description |
---|---|
-d, --delete-branch | Delete the local and remote branch after merge |
-m, --merge | Merge the commits with the base branch |
-r, --rebase | Rebase the commits onto the base branch |
-s, --squash | Squash the commits into one commit and merge it into the base branch |