Skip to content

Instantly share code, notes, and snippets.

@codernibba
Forked from vimal-verma/Github-cli-commands.md
Created April 24, 2020 11:01
Show Gist options
  • Save codernibba/4eb0b2da67f931b4feddadbe56c4ff11 to your computer and use it in GitHub Desktop.
Save codernibba/4eb0b2da67f931b4feddadbe56c4ff11 to your computer and use it in GitHub Desktop.
Github cli commands

Github cli commands

A list of Github cli commands

feel free to star this



Repository

Description Command
Initialize a Github repository [default private] gh repo create <name>
Initialize a Github public repository gh repo create <name> --public
Create a local copy of a remote repository gh repo clone <repository-name> or
gh repo clone https://github.com/<username>/<repository-name>
Create a fork for the current repository gh repo fork

Pull requests

Description Command
Check status gh pr status
Create a pull request gh pr create
Quickly navigate to the pull request creation page gh pr create --web
list of open pull requests gh pr list
View a pull request gh pr view

issue

Description Command
Create a new issue gh issue create
Create an issue using flags gh issue create --title "Issue title"
list of open issues gh issue list
list of closed issues gh issue list --state closed
Show status of relevant issues gh issue status
View an issue gh issue view {<number> / <url>}

follow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment