mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 14:53:59 +02:00
glab-repo: add page (#7558)
This commit is contained in:
parent
f9b662115a
commit
5359517412
1 changed files with 24 additions and 0 deletions
24
pages/common/glab-repo.md
Normal file
24
pages/common/glab-repo.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# glab repo
|
||||
|
||||
> Work with GitLab repositories on the command-line.
|
||||
> 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 web browser:
|
||||
|
||||
`glab repo view {{owner}}/{{repository}} --web`
|
||||
|
||||
- Search some repositories in the GitLab instance:
|
||||
|
||||
`glab repo search -s {{search_string}}`
|
Loading…
Add table
Reference in a new issue