Created
January 16, 2025 11:54
-
-
Save Maroo-b/08cf56570a5753a3219c73f6a26b6a48 to your computer and use it in GitHub Desktop.
Clone all Github repos of an 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
1. Install Gh cli tool | |
2. Run `gh auth login` | |
3. In a new directory run (change myorgname to the desired org value): | |
``` | |
gh repo list myorgname --limit 4000 | while read -r repo _; do | |
gh repo clone "$repo" "$repo" | |
done | |
``` | |
Ref: https://stackoverflow.com/questions/19576742/how-to-clone-all-repos-at-once-from-github |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment