forked from tldr-pages/tldr
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-pr-merge: add page (tldr-pages#5731)
- Loading branch information
1 parent
0a65d9c
commit fa468e6
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters