1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

gh-pr-merge: add page (#5731)

This commit is contained in:
Axel Navarro 2021-04-15 14:04:49 -03:00 committed by GitHub
parent 0a65d9c38a
commit fa468e6eb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 1 deletions

View file

@ -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}}"`

View file

@ -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`