Skip to content

Instantly share code, notes, and snippets.

@Maroo-b
Created January 16, 2025 11:54
Show Gist options
  • Save Maroo-b/08cf56570a5753a3219c73f6a26b6a48 to your computer and use it in GitHub Desktop.
Save Maroo-b/08cf56570a5753a3219c73f6a26b6a48 to your computer and use it in GitHub Desktop.
Clone all Github repos of an org
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