git-pull-request(1)

git-pull-request1

Create pull request for github project

Usage

git-pull-request [<target branch>]

Overview

Create pull request for a project on GitHub via command line.

A personal access token is required for making the API call to open the pull request(s) in GitHub. API Documentation here https://docs.github.com/en/rest/reference/pulls#create-a-pull-request

Make sure the personal access token has the right OAuth scopes for the repo(s)

Use git config --global --add git-extras.github-personal-access-token <your-personal-access-token>

If using multiple accounts, override the global value in the specific repo using git config git-extras.github-personal-access-token <other-acc-personal-access-token>

Options

<target branch>

The target branch you want to send pull request to.

Examples

$ git pull-request master
Everything up-to-date
  create pull-request for spacewander/spacewander-toolbox 'master'
  title: test
  body:
  base [master]:
  GitHub two-factor authentication code (leave blank if not set up):
...

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Written by Tj Holowaychuk <[email protected]>

Reporting bugs

<https://github.com/tj/git-extras/issues>

From git-extras 7.3.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.