Skip to content

Instantly share code, notes, and snippets.

@lzarus
Forked from NeilRobbins/cloner.sh
Created January 27, 2020 14:36
Show Gist options
  • Save lzarus/614b9e602c0fb4cbb9ea01fce2c09c0c to your computer and use it in GitHub Desktop.
Save lzarus/614b9e602c0fb4cbb9ea01fce2c09c0c 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