1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-02 08:35:24 +02:00
tldr/pages/common/gh.md
Managor ad7b6f797c
common*: refresh old pages part 6 (#16288)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-03 05:57:05 +03:00

743 B

gh

Work seamlessly with GitHub. Some subcommands such as config have their own usage documentation. More information: https://cli.github.com/manual/gh.

  • 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 {{[-w|--web]}} {{issue_number}}

  • Create a pull request:

gh pr create

  • View a pull request in the default web browser:

gh pr view {{[-w|--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