Skip to content

Instantly share code, notes, and snippets.

@pveierland
Created September 28, 2021 14:03
Show Gist options
  • Save pveierland/ac79b019035e8e514efe3107fccb8083 to your computer and use it in GitHub Desktop.
Save pveierland/ac79b019035e8e514efe3107fccb8083 to your computer and use it in GitHub Desktop.
gh-repo-mirror-all.bash
#!/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