Skip to content

Commit

Permalink
gh-pr-merge: add page (tldr-pages#5731)
Browse files Browse the repository at this point in the history
  • Loading branch information
navarroaxel authored Apr 15, 2021
1 parent 0a65d9c commit fa468e6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
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

0 comments on commit fa468e6

Please sign in to comment.