2025-03-14 21:59:59 -06:00
|
|
|
# gh pr create
|
|
|
|
|
|
|
|
|
|
> Manage GitHub pull requests.
|
|
|
|
|
> More information: <https://cli.github.com/manual/gh_pr_create>.
|
|
|
|
|
|
|
|
|
|
- Interactively create a pull request:
|
|
|
|
|
|
|
|
|
|
`gh pr create`
|
|
|
|
|
|
|
|
|
|
- Create a pull request, determining the title and description from the commit messages of the current branch:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh pr create {{[-f|--fill]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a draft pull request:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh pr create {{[-d|--draft]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a pull request specifying the base branch, title, and description:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh pr create {{[-B|--base]}} {{base_branch}} {{[-t|--title]}} "{{title}}" {{[-b|--body]}} "{{body}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start opening a pull request in the default web browser:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh pr create {{[-w|--web]}}`
|