LinuxCommandLibrary

glab-repo

Work with GitLab repositories on the command-line.

TLDR

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]
copy


Clone a repository
$ glab repo clone [owner]/[repository]
copy


Fork and clone a repository
$ glab repo fork [owner]/[repository] --clone
copy


View a repository in the default web browser
$ glab repo view [owner]/[repository] --web
copy


Search some repositories in the GitLab instance
$ glab repo search -s [search_string]
copy

Copied to clipboard