File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 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}}" `
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments