mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 05:58:05 +00:00
Update cheatsheets
This commit is contained in:
42
gh
Normal file
42
gh
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gh
|
||||
|
||||
> Work seamlessly with GitHub.
|
||||
> Some subcommands such as `gh config` have their own usage documentation.
|
||||
> More information: <https://cli.github.com/>.
|
||||
|
||||
- Clone a GitHub repository locally:
|
||||
|
||||
`gh repo clone {{owner}}/{{repository}}`
|
||||
|
||||
- Create a new issue:
|
||||
|
||||
`gh issue create`
|
||||
|
||||
- View and filter the open issues of the current repository:
|
||||
|
||||
`gh issue list`
|
||||
|
||||
- View an issue in the default web browser:
|
||||
|
||||
`gh issue view --web {{issue_number}}`
|
||||
|
||||
- Create a pull request:
|
||||
|
||||
`gh pr create`
|
||||
|
||||
- View a pull request in the default web browser:
|
||||
|
||||
`gh pr view --web {{pr_number}}`
|
||||
|
||||
- Check out a specific pull request locally:
|
||||
|
||||
`gh pr checkout {{pr_number}}`
|
||||
|
||||
- Check the status of a repository's pull requests:
|
||||
|
||||
`gh pr status`
|
||||
Reference in New Issue
Block a user