gh repo create
Create a new GitHub repository. Note:
--public,--private, or--internalis required when not running interactively. More information: https://cli.github.com/manual/gh_repo_create.
- Create a new repository interactively:
gh repo
- Create a private repository from the current directory:
gh repo . --private
- Create a public repository from the current directory:
gh repo . --public
- Create a public repository with a specified name and description:
gh repo "" --public
- Clone the new repository locally after creation:
gh repo
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
