2025-03-14 21:59:59 -06:00
|
|
|
# gh
|
|
|
|
|
|
|
|
|
|
> Work seamlessly with GitHub.
|
|
|
|
|
> Some subcommands such as `config` have their own usage documentation.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://cli.github.com/manual/gh>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh issue view {{[-w|--web]}} {{issue_number}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a pull request:
|
|
|
|
|
|
|
|
|
|
`gh pr create`
|
|
|
|
|
|
|
|
|
|
- View a pull request in the default web browser:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh pr view {{[-w|--web]}} {{pr_number}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Check out a specific pull request locally:
|
|
|
|
|
|
|
|
|
|
`gh pr checkout {{pr_number}}`
|
|
|
|
|
|
|
|
|
|
- Check the status of a repository's pull requests:
|
|
|
|
|
|
|
|
|
|
`gh pr status`
|