Created
January 30, 2025 23:36
-
-
Save brunomarks7/f55cf3e015f3fe119660b12db3b15e97 to your computer and use it in GitHub Desktop.
Clone all repositories using gh-cli
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 <org-name> | awk '{print $1}' > repository_urls.txt | |
| while IFS= read -r url; do | |
| repo_name=$(basename "$url" .git) | |
| gh repo clone "$url" "$repo_name" | |
| done < repository_urls.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment