LinuxCommandLibrary

git-pull-request

Create pull request from command line

TLDR

Create pull request

$ git pull-request
copy
Create with title
$ git pull-request -m "[title]"
copy
Create to specific branch
$ git pull-request -b [base_branch]
copy

SYNOPSIS

git pull-request [options]

DESCRIPTION

git pull-request creates a GitHub pull request from the command line. Part of git-extras or hub, it pushes the current branch if needed and opens a pull request to the specified base branch.
The command can extract PR title and body from commit messages or prompt for them interactively. Modern alternatives include the official `gh` CLI tool which provides more comprehensive GitHub integration.

PARAMETERS

-m, --message text

PR title/message.
-b, --base branch
Base branch.
-h, --head branch
Head branch.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community