From ed56b7d33c81f0e9d1ebbf8c1ccd519da5a0d6ff Mon Sep 17 00:00:00 2001 From: branles14 <135960981+branles14@users.noreply.github.com> Date: Sun, 29 Jun 2025 04:04:06 -0600 Subject: [PATCH] gh-repo-create: add page (#16938) Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec --- pages/common/gh-repo-create.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/gh-repo-create.md 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`