1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 21:42:08 +02:00
tldr/pages/common/gh.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

36 lines
665 B
Markdown

# gh
> Work seamlessly with GitHub from the command-line.
> 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 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}}`
- Locally check out the branch of a pull request, given its number:
`gh pr checkout {{pr_number}}`
- Check the status of a repository's pull requests:
`gh pr status`