Skip to content

mw gitlab repo fork

Releasev0.35.0 · cfeceb67

mw gitlab repo fork <repo> [flags]

Fork a GitLab repository.

-c, --clone
Clone the fork. Options: true, false.
-n, --name <string>
The name assigned to the new project after forking.
-p, --path <string>
The path assigned to the new project after forking.
--remote
Add a remote for the fork. Options: true, false.
-h, --help
Show help for this command.
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved account profile (login defaults to the verified username)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
$ glab repo fork
$ glab repo fork namespace/repo
$ glab repo fork namespace/repo --clone
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.