GH-REPO-CREATE(1)
β¨ gh-repo-create(1) β¨
okay bestie, welcome to the gh repo create page from the GitHub CLI manual π this one's literally the "make me a new repo" command and it's genuinely so good. let's get into it π«Ά
πΈ NAME πΈ
gh-repo-create β Create a new repository β¨
π¦ SYNOPSIS π¦
gh repo create [<name>] [flags]
π DESCRIPTION π
Create a new GitHub repository. that's it, that's the vibe π
- Wanna do it interactively? just run
gh repo createwith no arguments at all and it'll walk you through it, no cap π - Wanna make a remote repo non-interactively? supply the repository name plus one of
--public,--private, or--internal. and if you also pass--clone, it clones the new repository locally for you. iconic behavior fr fr β¨ - If the
OWNER/portion of theOWNER/REPOname argument is omitted, it defaults to the name of the authenticating user. lowkey convenient π - Making a remote repository from an existing local repository? specify the source directory with
--source. by default the remote repository name will be the name of the source directory π§ - Pass
--pushto push any local commits to the new repository. and heads up: if the repo is bare, this will mirror all refs π - Wanna use language or platform
.gitignoretemplates with--gitignore? go look at β¨https://github.com/github/gitignoreβ© π¦ - For license keywords to use with
--license, rungh repo license listor visit β¨https://choosealicense.comβ© π - The repo is created with the configured repository default branch, see β¨https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/managing-the-default-branch-name-for-your-repositoriesβ© π
π OPTIONS π
--add-readmeβ Add a README file to the new repository π-c,--cloneβ Clone the new repository to the current directory π-d,--description <string>β Description of the repository π--disable-issuesβ Disable issues in the new repository π--disable-wikiβ Disable wiki in the new repository π-g,--gitignore <string>β Specify a gitignore template for the repository π«-h,--homepage <URL>β Repository home page URL π--include-all-branchesβ Include all branches from template repository πΏ--internalβ Make the new repository internal π-l,--license <string>β Specify an Open Source License for the repository βοΈ--privateβ Make the new repository private π--publicβ Make the new repository public π--pushβ Push local commits to the new repository π-r,--remote <string>β Specify remote name for the new repository π-s,--source <string>β Specify path to local repository to use as source π-t,--team <name>β The name of the organization team to be granted access π₯-p,--template <repository>β Make the new repository based on a template repository π§¬
π ALIASES π
gh repo new β yep, same energy, shorter vibe β¨
π EXIT CODES π
0: Successful execution β1: Error π2: Command canceled π4: Authentication required π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. iykyk π
π EXAMPLE π
# Create a repository interactively
$ gh repo create
# Create a new remote repository and clone it locally
$ gh repo create my-project --public --clone
# Create a new remote repository in a different organization
$ gh repo create my-org/my-project --public
# Create a remote repository from the current directory
$ gh repo create my-project --private --source=. --remote=upstream
π SEE ALSO π
gh-repo(1) β go read that one too bestie π«Ά
that's the whole page, bestie π no notes, it ate. this came from GitHub CLI v2.102.0, dated Oct 2026 β go make some repos, you're gonna slay π β¨πΈ
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms