gh-repo

Work with GitHub repositories on the command line.

TLDR

Create a new repository (if the repository name is not set, the default name will be the name of the current directory)

$ gh repo create [name]
copy

Clone a repository

$ gh repo clone [owner]/[repository]
copy

Fork and clone a repository

$ gh repo fork [owner]/[repository] --clone
copy

View a repository in the web browser

$ gh repo view [repository] --web
copy

List repositories owned by a specific user or organization (if the owner is not set, the default owner will be the currently logged in user)

$ gh repo list [owner]
copy

List only non-forks repositories

$ gh repo list [owner] --non-forks
copy

List repositories with a specific primary coding language

$ gh repo list [owner] --language [language_name]
copy

Copied to clipboard
Coindodo