LinuxCommandLibrary

gh-repo-create

Create a new GitHub repository

TLDR

Create a new repository interactively

$ gh repo create
copy

Create a new repository with a specified name and description
$ gh repo create [repo_name] [[-d|--description]] "[repo_description]"
copy

Create a private repository from the current directory
$ gh repo create [[-s|--source]] . --private
copy

Clone the new repository locally after creation
$ gh repo create [repo_name] [[-c|--clone]]
copy

Push the current directory to a new GitHub repository
$ gh repo create [[-s|--source]] . --public
copy

SYNOPSIS

gh repo create [repository-name | local-path] [flags]

PARAMETERS

--add-readme
    Adds an initial README file to the repository.

--add-gitignore