1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 15:15:29 +02:00
tldr/pages/common/gh-pr.md
Managor ad7b6f797c
common*: refresh old pages part 6 (#16288)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-03 05:57:05 +03:00

772 B

gh pr

Manage GitHub pull requests. Some subcommands such as create have their own usage documentation. More information: https://cli.github.com/manual/gh_pr.

  • Create a pull request:

gh pr create

  • Check out a specific pull request locally:

gh pr checkout {{pr_number}}

  • View the changes made in the pull request for the current branch:

gh pr diff

  • Approve the pull request for the current branch:

gh pr review {{[-a|--approve]}}

  • Merge the pull request associated with the current branch interactively:

gh pr merge

  • Edit a pull request interactively:

gh pr edit

  • Edit the base branch of a pull request:

gh pr edit {{[-B|--base]}} {{branch_name}}

  • Check the status of the current repository's pull requests:

gh pr status