Difference between revisions of "Ghorg"
Jump to navigation
Jump to search
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | * https://github.com/gabrie30/ghorg | ||
+ | [[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]] | [[mkdir -p]] [[$HOME/.config/ghorg/conf.yaml]] | ||
touch [[$HOME/.config/ghorg/conf.yaml]] | touch [[$HOME/.config/ghorg/conf.yaml]] | ||
Line 9: | Line 11: | ||
[[ghorg clone --help]] | [[ghorg clone --help]] | ||
+ | [[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> | ||
+ | |||
+ | |||
+ | |||
+ | == Related == | ||
+ | * <code>[[glab]]</code> | ||
+ | * <code>[[gh]]</code> | ||
+ | * <code>[[PRIVATE-TOKEN]]</code> | ||
+ | == See also == | ||
+ | * {{ghorg}} | ||
+ | * {{SCM}} | ||
− | + | [[Category:GitLab]] | |
− |
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: