ghorg

From wikieduonline
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: