Last active
January 5, 2026 09:46
-
-
Save kenchopa/7c1adcaec70d0616ef68999279c6fc2f to your computer and use it in GitHub Desktop.
Clone all repo's from github org
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
| #!/usr/bin/env bash | |
| ORG="%ORG_NAME%" | |
| mkdir -p "$ORG" && cd "$ORG" | |
| gh repo list "$ORG" --limit 10000 --json sshUrl -q '.[].sshUrl' \ | |
| | xargs -n 1 git clone --recursive --depth 1 --shallow-submodules |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chmod +x clone-all.sh
./clone_all.sh