Down for Maintenance from December 09, 2025 Tuesday 9:30pm PST to December 10, 2025 Wednesday 3:30am PST (i.e., 05:30am -11:30am GMT, December 10, 2025 Wednesday)
- Loading...
...
| Code Block |
|---|
$ git pr -h
git-pr is used for interacting with pull requests from a command line.
The following sub-commands are available:
- apply -- apply a pull request
Usage: git pr apply [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remote NAME Name of remote, defaults to 'origin'
--no-token Do not use a personal access token (PAT)
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- approve -- approve a pull request
Usage: git pr approve [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remote NAME Name of remote, defaults to 'origin'
-m, --message TEXT Message to author as part of approval (e.g. "Looks good!")
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- checkoutcc -- checkoutadd one aor pullmore requestlabels
Usage: git pr checkout [<ID>]cc <ARG>...
Flags:
-u, --usernameverbose NAME UsernameTurn on hostverbose output
-r, --remotedebug NAME NameTurn ofon remote,debugging defaultsoutput
to 'origin'
-b, --branchversion NAME Print the Createversion a new branched named NAME
of this tool
- checkout -- checkout a pull request
Usage: git pr checkout [<ID>]
Flags:
-u, --username NAME Username on host
-r, -no-tokenremote NAME Name of Doremote, not use a personal access token (PAT)defaults to 'origin'
-b, --branch NAME Create a new branched named NAME
--no-token Do not use a personal access token (PAT)
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- close -- close a pull request
Usage: git pr close [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remote NAME Name of remote, defaults to 'origin'
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- contributor -- add or remove contributors
Usage: git pr contributor [<ID>]
Flags:
--add USERNAME Consider pull request contributed to by this user
--remove USERNAME Do not consider pull request contributed to by this user
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- create -- create a pull request
Usage: git pr create [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remote NAME Name of remote, defaults to 'origin'
-b, --branch NAME Name of target branch, defaults to 'master'
--cc MAILING LISTS Mailing lists to CC for inital RFR e-mail
--backport REV Create a backport pull request for the given revision
--ignore-workspace Ignore local changes in worktree and staging area when creating pull request
--ignore-local-commits Ignore local commits not pushed when creating pull request
--publish Publish the local branch before creating the pull request
--jcheck Run jcheck before creating the pull request
--draft Create a pull request in draft state
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- csr -- require CSR for the pull request
Usage: git pr csr [<ID>]
Flags:
--needed This pull request needs an approved CSR before integration
--unneeded This pull request does not need an approved CSR before integration
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- closefetch -- closefetch a pull request
Usage: git pr closefetch [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remote NAMEremote NAME Name of remote, defaults to 'origin'
--no-token Do Namenot use ofa remote,personal defaultsaccess to 'origin'token (PAT)
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- createinfo -- show status createof a pull request
Usage: git pr createinfo [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remote NAME Name of remote, defaults to 'origin'
-b, --branch NAME --no-decoration Name of target branch, defaults to 'master'Hide any decorations when listing PRs
--ccno-token MAILING LISTS Do Mailingnot listsuse toa CCpersonal foraccess inital RFR e-mailtoken (PAT)
--ignore-workspacechecks Ignore local changes inShow worktreeinformation andabout stagingchecks
area when creating pull request
--author --ignore-local-commits Ignore local commitsShow notthe pushedauthor whenof creatingthe pull request
--publishtitle PublishShow the local branch before creatingtitle of the pull request
--jcheckassignees Show the assignees of the pull request
Run jcheck before creating--reviewers the pull request
Show the reviewers of --draftthe pull request
--contributors Show the additional contributors Createto athe pull request in draft state
--verboseissues Show the issues associated with the Turn on verbose outputpull request
--debugcommits Show the commits in pull request
Turn on debugging--branch output
--version Show the target branch for the pull request
Print--url the version of this tool
- fetch -- fetch a pull request
Usage:Show gitthe prurl fetch [<ID>]
Flags:for the pull request
-u, --username NAME Username--status on host
-r, --remote NAME Show the Namestatus offor remote,the defaults to 'origin'pull request
--no-tokenlabels Do notShow usethe alabels personalfor accessthe tokenpull (PAT)request
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- infointegrate -- show statusintegrate of a pull request
Usage: git pr infointegrate [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remote NAME Name of remote, defaults to 'origin'
--no-decorationatomic Hide anyIntegrate decorationsthe whenpull listingrequest PRsatomically
--no-token verbose Turn on verbose output
--debug Do not use a personalTurn accesson tokendebugging (PAT)output
--checksversion Print the Showversion informationof aboutthis checkstool
- issue --author add, remove or create issues
Usage: git pr issue Show[<ID>]
the authorFlags:
of the pull request
--add ID --title Consider Showissue thesolved titleby ofthis the pull request
--assigneesremove ID Show the assignees of the pullDo request
not consider issue as solved by this pull --reviewersrequest
Show the reviewers of the pull request
--priority 1|2|3|4|5 Priority for issue
--contributorscomponent NAME Show the additional contributors to theComponent pullfor requestissue
--issuescreate Show theCreate issuesan associatedissue withfor thethis pull request
--commitsverbose Show the commitsTurn inon pullverbose requestoutput
--branchdebug Show the target branch forTurn theon pulldebugging requestoutput
--urlversion Print the version of this Show the url for thetool
- list -- list open pull requestrequests
Usage: git pr list [<ID>]
--statusFlags:
-u, --username NAME Show the status for the pull request
--labels Show theUsername labels for the pull requeston host
-r, --remote NAME --verbose Turn on verbose output
--debug Name of Turnremote, ondefaults debuggingto output'origin'
--versionauthors LIST Print the version of this tool
- integrate -- integrate a pull request
Usage: git pr integrate [<ID>]
Flags:
Comma -u, --username NAME Username on host
separated list of authors
-r, --remoteassignees LIST NAME Name of remote, defaults to 'origin'
--atomic IntegrateComma theseparated pulllist requestof atomicallyassignees
--verboselabels LIST Turn on verbose output
--debug Comma Turnseparated onlist debuggingof outputlabels
--versionissues LIST Print the version of this tool
- list -- list open pull requests
Usage: git pr list [<ID>]
Flags:
Comma -u, --username NAME separated list of issues
--columns id,title,author,assignees,labels Comma separated list of columns to show
--no-decoration Username on host
-r, --remote NAME Hide any decorations when listing PRs
Name--no-draft of remote, defaults to 'origin'
--authors LIST Hide all pull requests in draft state
Comma separated list of authors
--no-token --assignees LIST Do not use Commaa separatedpersonal listaccess oftoken assignees(PAT)
--labelsverbose LIST Comma separatedTurn liston ofverbose labelsoutput
--issuesdebug LIST Comma separated list of issues
Turn on debugging output
--columns id,title,author,assignees,labels Comma separated--version list of columns to show
--no-decoration Print the version of this tool
- reviewer Hide-- anyadd decorationsor whenremove listingreviewers
PRs
Usage: git pr reviewer [<ID>]
--no-draftFlags:
--add USERNAME Consider pull request reviewed by this user
--remove USERNAME Do not consider pull request reviewed Hideby allthis pulluser
requests in draft state
--verbose --no-token Turn on verbose output
--debug Turn on debugging output
Do not use a--version personal access token (PAT)
Print the --verboseversion of this tool
- set -- set properties of a pull request
Usage: git pr set [<ID>]
Flags:
-u, --username NAME Username on host
Turn on verbose output
-r, --remote NAME Name of remote, defaults --debugto 'origin'
--assignees LIST Comma separated list of assignees
--title MESSAGE The title of the pull request
Turn on debugging output
--open --version Set the pull request's state to open
--closed Set the pull request's state to closed
Print the version of this tool
- set --body set properties of a pull request
Usage: git pr set [<ID>]
Set the Flags:
body of the pull -u, --username NAMErequest
Username on host
--no-draft -r, --remote NAME Mark the Namepull ofrequest remote, defaults to 'origin'as not draft
--assigneesverbose LIST Comma separated list of assignees
Turn on verbose output
--title MESSAGE The title--debug of the pull request
Turn --openon debugging output
--version Set the pull request's state to open
Print the version of this tool
- show --closed Set the pull request's state to closed
- show a pull request
Usage: git pr show [<ID>]
Flags:
-u, --bodyusername NAME Username on host
-r, --remote NAME Set the bodyName of the pull requestremote, defaults to 'origin'
--no-drafttoken Do Marknot theuse pulla requestpersonal asaccess nottoken draft(PAT)
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- showsponsor -- showsponsor a pull request
Usage: git pr showsponsor [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remote NAME Name of remote, defaults to 'origin'
--no-token Do not use a personal access token (PAT)
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- sponsor -- sponsor a- summary -- add a summary to the commit message for the pull request
Usage: git pr sponsorsummary [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remoteremove NAME Remove Namean of remote, defaults to 'origin'existing summary
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
- test -- test a pull request
Usage: git pr test [<ID>]
Flags:
-u, --username NAME Username on host
-r, --remote NAME Name of remote, defaults to 'origin'
-j, --job NAME Name of a job
--approve Approve a test request
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool |
...