hub-pull-request(1) | hub manual | hub-pull-request(1) |
hub-pull-request - Create a GitHub Pull Request.
hub pull-request [-focpd] [-b BASE] [-h HEAD]
[-r REVIEWERS ] [-a ASSIGNEES] [-M MILESTONE] [-l
LABELS]
hub pull-request -m MESSAGE [--edit]
hub pull-request -F FILE [--edit]
hub pull-request -i ISSUE
-f, --force
-m, --message MESSAGE
When multiple --message are passed, their values are concatenated with a blank line in-between.
When neither --message nor --file were supplied, a text editor will open to author the title and description in.
--no-edit
-F, --file FILE
-e, --edit
-i, --issue ISSUE
You can only convert issues authored by you or that which you have admin rights over. In most workflows it is not necessary to convert issues to pull requests; you can simply reference the original issue in the body of the new pull request.
-o, --browse
-c, --copy
-p, --push
-b, --base BASE
See the "CONVENTIONS" section of hub(1) for more information on how hub selects the defaults in case of multiple git remotes.
-h, --head HEAD
-r, --reviewer USERS
-a, --assign USERS
-M, --milestone NAME
-l, --labels LABELS
-d, --draft
--no-maintainer-edits
$ hub pull-request [ opens a text editor for writing title and message ] [ creates a pull request for the current branch ] $ hub pull-request --base OWNER:master --head MYUSER:my-branch [ creates a pull request with explicit base and head branches ] $ hub pull-request --browse -m "My title" [ creates a pull request with the given title and opens it in a browser ] $ hub pull-request -F - --edit < path/to/message-template.md [ further edit the title and message received on standard input ]
HUB_RETRY_TIMEOUT
09 Apr 2023 | hub version 2.14.2 |