Created
March 21, 2025 11:43
-
-
Save mdsami/0870d360703c3fb91cb5b0303e3699f3 to your computer and use it in GitHub Desktop.
git clone all repos from a Org or from a profile
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 myorg --limit 4000 | while read -r repo _; do | |
repo_name=$(basename "$repo") | |
echo "Cloning $repo_name as mirror..." | |
git clone --mirror "https://github.com/$repo.git" | |
#gh repo clone "$repo" "$repo" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment