1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 16:42:08 +02:00
tldr/pages/common/glab-repo.md
Lena 7ca1069d76
pages/*: reword descriptions without using "a CLI for" etc. (#10437)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-16 19:23:40 +02:00

24 lines
626 B
Markdown

# glab repo
> Work with GitLab repositories.
> More information: <https://glab.readthedocs.io/en/latest/repo/index.html#synopsis>.
- 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 default web browser:
`glab repo view {{owner}}/{{repository}} --web`
- Search some repositories in the GitLab instance:
`glab repo search -s {{search_string}}`