Created
August 5, 2021 15:40
-
-
Save shahidcodes/fba4de8f37c549e06855e0ce7d22e1cd to your computer and use it in GitHub Desktop.
clone all gitlab group repositories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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