2021-12-29 17:50:26 +00:00
|
|
|
# glab repo
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Work with GitLab repositories.
|
2021-12-29 17:50:26 +00:00
|
|
|
> 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`
|
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
- View a repository in the default web browser:
|
2021-12-29 17:50:26 +00:00
|
|
|
|
|
|
|
`glab repo view {{owner}}/{{repository}} --web`
|
|
|
|
|
|
|
|
- Search some repositories in the GitLab instance:
|
|
|
|
|
|
|
|
`glab repo search -s {{search_string}}`
|