LinuxCommandLibrary

gh-repo-create

Create a new GitHub repository

TLDR

Create a new repository interactively

$ gh repo [[new|create]]
copy

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

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

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

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

SYNOPSIS

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

PARAMETERS

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

--add-gitignore