1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:42:08 +02:00
tldr/pages/common/gh-pr.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

582 B

gh pr

Manage GitHub pull requests from the command-line. More information: https://cli.github.com/manual/gh_pr.

  • Create a pull request:

gh pr create

  • Check out a pull request locally:

gh pr checkout {{pr_number}}

  • View the changes made in the PR:

gh pr diff

  • Approve the pull request of the current branch:

gh pr review --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 --base {{branch_name}}