1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 06:15:24 +02:00
tldr/pages/common/glab-repo.md

25 lines
668 B
Markdown
Raw Normal View History

2021-12-29 18:50:26 +01:00
# glab repo
> Work with GitLab repositories.
2025-05-11 20:03:01 +03:00
> More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/repo/index.md>.
2021-12-29 18:50:26 +01:00
- 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}} {{[-c|--clone]}}`
2021-12-29 18:50:26 +01:00
- View a repository in the default web browser:
2021-12-29 18:50:26 +01:00
`glab repo view {{owner}}/{{repository}} {{[-w|--web]}}`
2021-12-29 18:50:26 +01:00
- Search some repositories in the GitLab instance:
`glab repo search {{[-s|--search]}} {{search_string}}`