Skip to content

Instantly share code, notes, and snippets.

@jorgerance
Last active December 18, 2019 14:49
Show Gist options
  • Save jorgerance/2d68276c8a8e3ea212b722ccb7422c67 to your computer and use it in GitHub Desktop.
Save jorgerance/2d68276c8a8e3ea212b722ccb7422c67 to your computer and use it in GitHub Desktop.
github_clone-all.sh
#!/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