aboutsummaryrefslogtreecommitdiffstats
path: root/executables/bin/gh-clone-all
blob: 742189bd03c970e69244727acf2a20744c98b096 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# Clone down all repositories from a GitHub entity.
#
# Args:
#   $1: The entity name to clone. i.e. github.com/eugenetriguba => eugenetriguba

gh repo list "$1" --limit 10000 | while read -r repo _; do
  gh repo clone "$repo" "$repo"
done