Skip to content

Instantly share code, notes, and snippets.

@achingachris
Created May 20, 2020 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save achingachris/586c1157fc574ddf4fb450335d78f7a8 to your computer and use it in GitHub Desktop.
Save achingachris/586c1157fc574ddf4fb450335d78f7a8 to your computer and use it in GitHub Desktop.
Github cli commands

General Activity

Command usage detailed usage
gh --version view version of gh cli -

Working with repositories (repo)

Command usage detailed usage
gh repo view view current repo on the browser (web) https://cli.github.com/manual/gh_repo_view
gh repo fork create a fork of a repo https://cli.github.com/manual/gh_repo_fork
gh repo create create a new repo https://cli.github.com/manual/gh_repo_create
gh repo clone clone a repo locally https://cli.github.com/manual/gh_repo_clone

Working with Issues

Command usage detailed usage
gh issue view view an issue of a repo https://cli.github.com/manual/gh_issue_view
gh issue create create an issue locally https://cli.github.com/manual/gh_issue_create
gh issue status displays the status of issues on the repo https://cli.github.com/manual/gh_issue_status
gh issue list lists all issues raised on the repo https://cli.github.com/manual/gh_issue_list

Working with pull requests (pr)

Command usage detailed usage
gh pr view view pull requests in browser https://cli.github.com/manual/gh_pr_view
gh pr status lists the statuses of available pull requests https://cli.github.com/manual/gh_pr_status
gh pr list lists all pull requests in the current repo https://cli.github.com/manual/gh_pr_list
gh pr create create a pull request https://cli.github.com/manual/gh_pr_create
gh pr checkout check out a pull request in git https://cli.github.com/manual/gh_pr_checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment