ghorg

From wikieduonline
Revision as of 10:15, 5 September 2022 by Cry (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: