gh-pr-merge

Merge GitHub pull requests.

TLDR

Merge the pull request associated with the current branch interactively

$ gh pr merge
copy

Merge the specified pull request, interactively

$ gh pr merge [pr_number]
copy

Merge the pull request, removing the branch on both the local and the remote

$ gh pr merge --delete-branch
copy

Merge the current pull request with the specified merge strategy

$ gh pr merge --[merge|squash|rebase]
copy

Squash the current pull request into one commit with the message body and merge

$ gh pr merge --squash --body="[commit_message_body]"
copy

Display help

$ gh pr merge --help
copy

Copied to clipboard
Dodo Farming