Skip to content

Instantly share code, notes, and snippets.

@sofyan-ahmad
Created May 31, 2022 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sofyan-ahmad/71a95d1055072abd1877c346affba916 to your computer and use it in GitHub Desktop.
Save sofyan-ahmad/71a95d1055072abd1877c346affba916 to your computer and use it in GitHub Desktop.
Gitlab: Print all repos under a group
for repo in $(curl -s --header "PRIVATE-TOKEN: YOUR_TOKEN" "https://gitlab.com/api/v4/groups/YOUR_GROUP?include_subgroups=true&per_page=100" | jq -r ".projects[].http_url_to_repo"); do echo $repo; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment