gh-pr

Manage GitHub pull requests from the command line.

TLDR

Create a pull request

$ gh pr create
copy

Check out a pull request locally

$ gh pr checkout [pr_number]
copy

View the changes made in the PR

$ gh pr diff
copy

Approve the pull request of the current branch

$ gh pr review --approve
copy

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

$ gh pr merge
copy

Copied to clipboard
free 100$ digital ocean credit