Last active
December 18, 2019 14:49
-
-
Save jorgerance/2d68276c8a8e3ea212b722ccb7422c67 to your computer and use it in GitHub Desktop.
github_clone-all.sh
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
#!/bin/bash | |
USERNAME=<USERNAME> | |
curl "https://api.github.com/users/$USERNAME/repos?page=1&per_page=1000" | | |
grep -e 'git_url*' | | |
cut -d \" -f 4 | | |
xargs -L1 git clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment