Created
September 28, 2021 14:03
-
-
Save pveierland/ac79b019035e8e514efe3107fccb8083 to your computer and use it in GitHub Desktop.
gh-repo-mirror-all.bash
This file contains 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
#!/usr/bin/env bash | |
exec ssh-agent bash & | |
ssh-add | |
gh repo list "${1}" --limit 9999 | while read -r repo _; do | |
gh repo clone "$repo" -- --mirror | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment