Skip to content

Instantly share code, notes, and snippets.

@kenchopa
Last active January 5, 2026 09:46
Show Gist options
  • Select an option

  • Save kenchopa/7c1adcaec70d0616ef68999279c6fc2f to your computer and use it in GitHub Desktop.

Select an option

Save kenchopa/7c1adcaec70d0616ef68999279c6fc2f to your computer and use it in GitHub Desktop.
Clone all repo's from github org
#!/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
@kenchopa
Copy link
Author

kenchopa commented Jan 5, 2026

chmod +x clone-all.sh
./clone_all.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment