DEV Community

Cover image for List of Github cli commands
VIMAL KUMAR for Web

Posted on • Edited on

5 1

List of Github cli commands

Github cli commands

A list of Github cli commands

feel free to star this



Alt Github cli

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

Quickstart image

Django MongoDB Backend Quickstart! A Step-by-Step Tutorial

Get up and running with the new Django MongoDB Backend Python library! This tutorial covers creating a Django application, connecting it to MongoDB Atlas, performing CRUD operations, and configuring the Django admin for MongoDB.

Watch full video →

Top comments (4)

Collapse
 
sankalpkotewar profile image
Sankalp Kotewar

No provision to commit and push code?

Collapse
 
cladius profile image
Cladius Fernando

commit and push are handle vit the "git" commands. Note the subtle difference. Github (gh) is for Github level activities. Git (git) is for a specific-repo level activities.

Collapse
 
sankalpkotewar profile image
Sankalp Kotewar

Hmm makes sense!

Collapse
 
aakashcode12 profile image
Aakash Yadav

Thanks man

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay