GH-REPO-CREATE(1) | GitHub CLI manual | GH-REPO-CREATE(1) |
gh-repo-create - Create a new repository
gh repo create [<name>] [flags]
Create a new GitHub repository.
To create a repository interactively, use gh repo create with no arguments.
To create a remote repository non-interactively, supply the repository name and one of --public, --private, or --internal. Pass --clone to clone the new repository locally.
To create 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 --push to push any local commits to the new repository.
# 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 remote repository from the current directory gh repo create my-project --private --source=. --remote=upstream
gh-repo(1)
Nov 2024 |