Skip to content

Instantly share code, notes, and snippets.

@MaxymVlasov
Created June 27, 2023 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaxymVlasov/31c1d21a62730888705f558f74b0e914 to your computer and use it in GitHub Desktop.
Save MaxymVlasov/31c1d21a62730888705f558f74b0e914 to your computer and use it in GitHub Desktop.
Clone all user/org repos
gh repo list "$GH_ORG_OR_USER_NAME" --limit 1000 | sort > repos.list
cat repos.list | while read -r repo _; do
echo "--- Start $repo ---"
gh repo clone "$repo" "$repo"
echo "--- End $repo ---"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment