mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-27 18:18:58 +00:00
966 B
966 B
Note: all flags can be permanently set in your $HOME/.config/ghorg/conf.yaml
clone a user on a hosted gitlab instance using a token for auth
$ ghorg clone <gitlab_username> --clone-type=user --base-url=https://<your.instance.gitlab.com> --scm=gitlab --token=XXXXXXXXXXXXX
clone a group on a hosted gitlab instance preserving the directory structure of subgroups
$ ghorg clone <gitlab_group> --base-url=https://<your.instance.gitlab.com> --scm=gitlab --preserve-dir
clone only a subgroup on a hosted gitlab
$ ghorg clone <gitlab_group>/<gitlab_sub_group> --base-url=https://<your.instance.gitlab.com> --scm=gitlab
clone all repos that are prefixed with "frontend" into a folder called "design_only" from a group on a hosted gitlab instance
$ ghorg clone <gitlab_group> --base-url=https://<your.instance.gitlab.com> --scm=gitlab --match-regex=^frontend --output-dir=design_only