From 53595174126f28fe9b9c4fbc4f42e538c93076ce Mon Sep 17 00:00:00 2001 From: Antoine Amara Date: Wed, 29 Dec 2021 18:50:26 +0100 Subject: [PATCH] glab-repo: add page (#7558) --- pages/common/glab-repo.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/glab-repo.md diff --git a/pages/common/glab-repo.md b/pages/common/glab-repo.md new file mode 100644 index 000000000..22498592b --- /dev/null +++ b/pages/common/glab-repo.md @@ -0,0 +1,24 @@ +# glab repo + +> Work with GitLab 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): + +`glab repo create {{name}}` + +- Clone a repository: + +`glab repo clone {{owner}}/{{repository}}` + +- Fork and clone a repository: + +`glab repo fork {{owner}}/{{repository}} --clone` + +- View a repository in the web browser: + +`glab repo view {{owner}}/{{repository}} --web` + +- Search some repositories in the GitLab instance: + +`glab repo search -s {{search_string}}`