Created
June 27, 2023 13:45
-
-
Save MaxymVlasov/31c1d21a62730888705f558f74b0e914 to your computer and use it in GitHub Desktop.
Clone all user/org repos
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 characters
gh repo list "$GH_ORG_OR_USER_NAME" --limit 1000 | sort > repos.list | |
cat repos.list | while read -r repo _; do | |
echo "--- Start $repo ---" | |
gh repo clone "$repo" "$repo" | |
echo "--- End $repo ---" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment