mirror of https://github.com/CrimsonTome/tldr.git
37 lines
612 B
Markdown
37 lines
612 B
Markdown
# gh
|
||
|
||
> Work seamlessly with GitHub from the command line.
|
||
> More information: <https://cli.github.com/>.
|
||
|
||
- Clone a repository locally:
|
||
|
||
`gh repo clone {{owner}}/{{repository}}`
|
||
|
||
- Create a new issue:
|
||
|
||
`gh issue create`
|
||
|
||
- View and filter a repository’s open issues:
|
||
|
||
`gh issue list`
|
||
|
||
- View an issue in the browser:
|
||
|
||
`gh issue view --web {{issue_number}}`
|
||
|
||
- Create a pull request:
|
||
|
||
`gh pr create`
|
||
|
||
- View a pull request in the browser:
|
||
|
||
`gh pr view --web {{pr_number}}`
|
||
|
||
- Check out pull requests locally:
|
||
|
||
`gh pr checkout {{pr_number}}`
|
||
|
||
- Check the status of a repository's pull requests:
|
||
|
||
`gh pr status`
|