Skip to content

Instantly share code, notes, and snippets.

@AndrewUsher
Created May 17, 2019 18:25
Show Gist options
  • Save AndrewUsher/e29e63bc1ec4967f4a8c8a920f2d8dab to your computer and use it in GitHub Desktop.
Save AndrewUsher/e29e63bc1ec4967f4a8c8a920f2d8dab to your computer and use it in GitHub Desktop.
Git Clone all Repos
CNTX={users|orgs}; NAME={username|orgname}; PAGE=1
curl "https://api.github.com/$CNTX/$NAME/repos?page=$PAGE&per_page=100" |
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