Created
June 5, 2023 14:35
-
-
Save huantt/32b099795d9c30a196d05a2ca113910c to your computer and use it in GitHub Desktop.
Revisions
-
huantt created this gist
Jun 5, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ host=https://git.your-domain.com \ session="a04dbb20e2c00433b3a5b137bc2c9b5c" \ group="your-group" \ api="$host/api/v4/groups/$group" for repo in $(curl -s --header "cookie: _gitlab_session=$session" $api | jq -r ".projects[].ssh_url_to_repo"); do git clone $repo; done;