mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 20:26:04 +02:00
gh-pr: add page (#4717)
This commit is contained in:
parent
8400c98f2a
commit
0be5e3adaf
1 changed files with 24 additions and 0 deletions
24
pages/common/gh-pr.md
Normal file
24
pages/common/gh-pr.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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, removing the branch on both the local and the remote:
|
||||
|
||||
`gh pr merge`
|
Loading…
Add table
Reference in a new issue