commands.sh

glab repo

all

Work with GitLab repositories.

More info →

Options (3)

-c, --cloneboolean

Fork and clone a repository

Example: glab repo fork {{owner}}/{{repository}} {{[-c|--clone]}}
-w, --webboolean

View a repository in the default web browser

Example: glab repo view {{owner}}/{{repository}} {{[-w|--web]}}
-s, --searchboolean

Search some repositories in the GitLab instance

Example: glab repo search {{[-s|--search]}} {{search_string}}

Examples (5)

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]

View a repository in the default web browser

glab repo view owner/repository [-w|--web]

Search some repositories in the GitLab instance

glab repo search [-s|--search] search_string
made by @shridhargupta | data from tldr-pages