Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions pages/common/gh-pr-merge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# gh pr merge

> Merge GitHub pull requests.
> More information: <https://cli.github.com/manual/gh_pr_merge>.

- Merge the pull request associated with the current branch interactively:

`gh pr merge`

- Merge the specified pull request, interactively:

`gh pr merge {{pr_number}}`

- Merge the pull request, removing the branch on both the local and the remote:

`gh pr merge --delete-branch`

- Merge the current pull request with the specified merge strategy:

`gh pr merge --{{merge|squash|rebase}}`

- Squash the current pull request into one commit with the message body and merge:

`gh pr merge --squash --body="{{commit_message_body}}"`
2 changes: 1 addition & 1 deletion pages/common/gh-pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

`gh pr review --approve`

- Merge the pull request associated with the current branch, removing the branch on both the local and the remote:
- Merge the pull request associated with the current branch interactively:

`gh pr merge`

Expand Down