Last active
September 12, 2024 11:52
-
-
Save milanboers/f34cdfc3e1ad9ba02ee8e44dae8e093f to your computer and use it in GitHub Desktop.
Clone all repositories of a Github user
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
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
((page_count = public_repos / 100 + 1))
+10 for this smart move, you fetched the API repo amount and then use it for pagination to expand the crawl limits.
Will try your tool at some time, atm no ongoing tasks for that. But still good job! 👍