Forrest logo
back to the gh tool

gh-pr-create:tldr:cba9c

gh-pr-create: Create a pull request specifying the base branch, title, and description.
$ gh pr create --base ${base_branch} --title "${title}" --body "${body}"
try on your machine

This command is used to create a pull request (PR) on GitHub using the GitHub CLI (command-line interface).

  • gh pr create: This is the main command to create a pull request.
  • --base ${base_branch}: This option sets the base branch for the pull request. ${base_branch} is a variable that should be replaced with the actual name of the branch you want to use as the base.
  • --title "${title}": This option sets the title of the pull request. ${title} is a variable that should be replaced with the desired title for the PR.
  • --body "${body}": This option sets the body or description of the pull request. ${body} is a variable that should be replaced with the desired description of the PR.

In summary, this command is used to create a pull request on GitHub, specifying the base branch, title, and description for the PR.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool