Difference between revisions of "Ghorg"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
[[ghorg clone all-groups]] --base-url=https://<your.instance.gitlab.com> --scm=gitlab --token=XXXXXX --preserve-dir | [[ghorg clone all-groups]] --base-url=https://<your.instance.gitlab.com> --scm=gitlab --token=XXXXXX --preserve-dir | ||
+ | |||
+ | Alternative: <code>for repo in $(curl -s --header "PRIVATE-TOKEN: your_private_token" https://<your-host>/api/v4/groups/<group_id> | jq -r ".projects[].ssh_url_to_repo"); do git clone $repo; done;</code> | ||
Latest revision as of 10:15, 5 September 2022
brew install gabrie30/utils/ghorg
$HOME/.config/ghorg/conf.yaml
Example: https://github.com/gabrie30/ghorg/blob/master/sample-conf.yaml mkdir -p $HOME/.config/ghorg/conf.yaml touch $HOME/.config/ghorg/conf.yaml
ghorg clone --help
ghorg clone all-groups --base-url=https://<your.instance.gitlab.com> --scm=gitlab --token=XXXXXX --preserve-dir
Alternative: for repo in $(curl -s --header "PRIVATE-TOKEN: your_private_token" https://<your-host>/api/v4/groups/<group_id> | jq -r ".projects[].ssh_url_to_repo"); do git clone $repo; done;
Related[edit]
See also[edit]
Advertising: