Skip to content

Instantly share code, notes, and snippets.

@pascalwhoop
Created October 28, 2019 20:28
Show Gist options
  • Save pascalwhoop/ce68a0416bd739dea1476aa89c072275 to your computer and use it in GitHub Desktop.
Save pascalwhoop/ce68a0416bd739dea1476aa89c072275 to your computer and use it in GitHub Desktop.
simple script using git and jq to clone all repos (below a decent threshold of 200)
url=https://api.github.com/orgs/$1/repos?per_page=200
all=$(curl $url | jq -r ".[].full_name)
for r in $all
do
git clone "https://github.com/$r.git"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment