Gitlab - clone all repos from group
1 | for repo in $(curl -s --header "PRIVATE-TOKEN: __PRIVATE_TOKEN___" https://___GITLAB_HOSTNAME___/api/v4/groups/___GROUP_ID___ | jq -r ".projects[].ssh_url_to_repo"); do git clone $repo; done; |
Recommendations
1 | for repo in $(curl -s --header "PRIVATE-TOKEN: __PRIVATE_TOKEN___" https://___GITLAB_HOSTNAME___/api/v4/groups/___GROUP_ID___ | jq -r ".projects[].ssh_url_to_repo"); do git clone $repo; done; |