git - How to clone all projects of a group at once in GitLab? - Stack Overflow

PHOTO EMBED

Fri Jan 14 2022 07:36:23 GMT+0000 (Coordinated Universal Time)

Saved by @alex_kluge #sh #git

for repo in $(curl -s --header "PRIVATE-TOKEN: your_private_token" "https://<your-host>/api/v4/groups/<group_id>" | jq ".projects[].ssh_url_to_repo" | tr -d '"'); do git clone $repo; done;
content_copyCOPY

MAN Git Subgroups

https://stackoverflow.com/questions/29099456/how-to-clone-all-projects-of-a-group-at-once-in-gitlab