Skip to content

Instantly share code, notes, and snippets.

@NeilRobbins
Last active February 8, 2022 08:53
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save NeilRobbins/583d49657cbd6b97b72d911b2c601bf8 to your computer and use it in GitHub Desktop.
Save NeilRobbins/583d49657cbd6b97b72d911b2c601bf8 to your computer and use it in GitHub Desktop.
Clone all projects for a GitLab group
ORG=PUT_THE_ORG_NAME_HERE;ACCESS_TOKEN=PUT_THE_TOKEN_HERE; curl --header "PRIVATE-TOKEN: $ACCESS_TOKEN" "https://gitlab.com/api/v4/groups/$ORG/projects" | sed 's/,/\'$'\n''/g' | grep -e 'ssh_url_to_repo*' | cut -d \" -f 4 | xargs -L1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment