Skip to content

ezgh git prs merge

Merge a pull request.

Updated View as Markdown
ezgh git prs merge <repo> <number> [--method merge|squash|rebase] [--message text] [flags]

Merge a pull request into its base branch, by --method: merge (a merge commit), squash (one commit) or rebase (its commits replayed onto the base; refused when they include a merge commit); the default is the first the repository allows. The repository and the base branch’s rule decide which methods are allowed and what a merge needs. It merges the head ezgh reads first, or --expected-head-sha, and is refused if the pull request moved since.

Part of ezgh git prs.

Examples

ezgh git prs merge site 12 --method squash

Flags

Flag Type Default Description
--expected-head-sha string merge only if this is still the pull request’s head commit
--message string the merge or squash commit’s message
--method string merge, squash or rebase (default: the first the repository allows)

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close