Skip to content

Instantly share code, notes, and snippets.

@shahidcodes
Created August 5, 2021 15:40
Show Gist options
  • Save shahidcodes/fba4de8f37c549e06855e0ce7d22e1cd to your computer and use it in GitHub Desktop.
Save shahidcodes/fba4de8f37c549e06855e0ce7d22e1cd to your computer and use it in GitHub Desktop.
clone all gitlab group repositories
for repo in $(curl -s --header "PRIVATE-TOKEN: <private token>" https://gitlab.com/api/v4/groups/<group id>?include_subgroups=true | jq ".projects[].ssh_url_to_repo" | tr -d '"'); do git clone $repo; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment