Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 635 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 635 Bytes

gh merge

gh merge is a GitHub CLI extension to squash and merge PRs. The commit message will be the PR description followed by the list of commits.

Installation

Make sure you have gh and git installed. Then run:

$ gh extension install leofeyer/gh-merge

Usage

$ gh merge 1234

If you are on a branch that you have checked out with gh pr checkout 1234, you can omit the PR number:

$ gh merge

Use the --auto flag to enable auto-merging:

$ gh merge 1234 --auto

Use the --admin flag to merge the PR with admin privileges:

$ gh merge 1234 --admin