mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 08:00:39 +00:00
Update cheatsheets
This commit is contained in:
42
gh-pr
Normal file
42
gh-pr
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gh pr
|
||||
|
||||
> Manage GitHub pull requests.
|
||||
> Some subcommands such as `gh pr 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 --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}}`
|
||||
|
||||
- Check the status of the current repository's pull requests:
|
||||
|
||||
`gh pr status`
|
||||
Reference in New Issue
Block a user