← 返回命令列表

Linux command

glab-repo 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Clone a repository

glab repo clone [owner/repo]

Create a new repository

glab repo create [name]

Fork a repository

glab repo fork [owner/repo]

View repository details

glab repo view [owner/repo]

Archive repository

glab repo archive [owner/repo]

Search for repositories

glab repo search [query]

List repositories

glab repo list

Delete a repository

glab repo delete [owner/repo]

说明

glab repo manages GitLab repositories from the command line. It provides subcommands for cloning, creating, forking, searching, and viewing repositories without leaving the terminal.

参数

--public
Create as public repository.
--private
Create as private repository.
--description _text_
Repository description.
--clone
Clone after forking.
--group _name_
Create repository in a specific group/namespace.
-y, --yes
Skip confirmation prompts.

FAQ

What is the glab-repo command used for?

glab repo manages GitLab repositories from the command line. It provides subcommands for cloning, creating, forking, searching, and viewing repositories without leaving the terminal.

How do I run a basic glab-repo example?

Run `glab repo clone [owner/repo]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --public do in glab-repo?

Create as public repository.