diff --git a/pages/common/gh-repo-create.md b/pages/common/gh-repo-create.md new file mode 100644 index 0000000000..f72e6f4b1d --- /dev/null +++ b/pages/common/gh-repo-create.md @@ -0,0 +1,24 @@ +# gh repo create + +> Create a new GitHub repository. +> More information: . + +- Create a new repository interactively: + +`gh repo create` + +- Create a new repository with a specified name and description: + +`gh repo create {{repo_name}} {{[-d|--description]}} "{{repo_description}}"` + +- Create a private repository from the current directory: + +`gh repo create {{[-s|--source]}} . --private` + +- Clone the new repository locally after creation: + +`gh repo create {{repo_name}} {{[-c|--clone]}}` + +- Push the current directory to a new GitHub repository: + +`gh repo create {{[-s|--source]}} . --public`