4 ms·
This looks nice, but I typically use something like this: curl https://api.github.com/users/[username]/repos | jq .[].clone_url | xargs -n 1 git clone Onl
by glenda 11y ago
This looks nice, but I typically use something like this:
curl https://api.github.com/users/[username]/repos | jq .[].clone_url | xargs -n 1 git clone
Only works for public repos though.
- jsnider3 11y agoThat's clever and is the first time I encountered jq, so thanks for introducing me to something new. Personally, I prefer python solutions to shell solutions, since its easier to maintain / add features.
- archimedespi 11y agoGood solution! You can use this for orgs as well, just curl https://api.github.com/orgs/[orgname]/repos instead.