commands.sh
⌘K

gh

all

Work seamlessly with GitHub. Some subcommands such as `config` have their own usage documentation.

More info →

Options (4)

boolean

Create a new issue

Example: gh issue {{[new|create]}}
boolean

View and filter the open issues of the current repository

Example: gh issue {{[ls|list]}}
-w, --webboolean

View an issue in the default web browser

Example: gh issue view {{[-w|--web]}} {{issue_number|url}}
boolean

Check out a specific pull request locally

Example: gh {{[co|pr checkout]}} {{pr_number|url|branch}}

Examples (8)

Clone a GitHub repository locally

gh repo clone owner/repository

Create a new issue

gh issue [new|create]

View and filter the open issues of the current repository

gh issue [ls|list]

View an issue in the default web browser

gh issue view [-w|--web] issue_number|url

Create a pull request

gh pr [new|create]

View a pull request in the default web browser

gh pr view [-w|--web] pr_number|url|branch

Check out a specific pull request locally

gh [co|pr checkout] pr_number|url|branch

Check the status of a repository's pull requests

gh pr status
made by @shridhargupta | data from tldr-pages