Skip to content

Commit fa468e6

Browse files
authored
gh-pr-merge: add page (#5731)
1 parent 0a65d9c commit fa468e6

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

pages/common/gh-pr-merge.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# gh pr merge
2+
3+
> Merge GitHub pull requests.
4+
> More information: <https://cli.github.com/manual/gh_pr_merge>.
5+
6+
- Merge the pull request associated with the current branch interactively:
7+
8+
`gh pr merge`
9+
10+
- Merge the specified pull request, interactively:
11+
12+
`gh pr merge {{pr_number}}`
13+
14+
- Merge the pull request, removing the branch on both the local and the remote:
15+
16+
`gh pr merge --delete-branch`
17+
18+
- Merge the current pull request with the specified merge strategy:
19+
20+
`gh pr merge --{{merge|squash|rebase}}`
21+
22+
- Squash the current pull request into one commit with the message body and merge:
23+
24+
`gh pr merge --squash --body="{{commit_message_body}}"`

pages/common/gh-pr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
`gh pr review --approve`
2121

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

2424
`gh pr merge`
2525

0 commit comments

Comments
 (0)