From 5511382eede17ef871dfed786f615c8ee7b0dbf8 Mon Sep 17 00:00:00 2001 From: Alex Brenon Date: Wed, 4 Nov 2020 13:37:36 -0500 Subject: [PATCH] gh-repo: add page (#4897) --- pages/common/gh-repo.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/gh-repo.md diff --git a/pages/common/gh-repo.md b/pages/common/gh-repo.md new file mode 100644 index 0000000000..fd5d2efbff --- /dev/null +++ b/pages/common/gh-repo.md @@ -0,0 +1,20 @@ +# gh repo + +> Work with GitHub repositories on the command line. +> More information: . + +- Create a new repository (if the repository name is not set, the default name will be the name of the current directory): + +`gh repo create {{name}}` + +- Clone a repository: + +`gh repo clone {{owner}}/{{repository}}` + +- Fork and clone a repository: + +`gh repo fork {{owner}}/{{repository}} --clone` + +- View a repository in the web browser: + +`gh repo view {{repository}} --web`