Skip to content

Instantly share code, notes, and snippets.

@revisualize
Created May 6, 2018 07:51
Show Gist options
  • Save revisualize/872810b63e5d9c364b5b318395d7ee6a to your computer and use it in GitHub Desktop.
Save revisualize/872810b63e5d9c364b5b318395d7ee6a to your computer and use it in GitHub Desktop.
Complete clone of all Github repos
ORGANIZATION=xxx
USERSORGS=[users|orgs]
curl -s https://api.github.com/$USERSORGS/$ORGANIZATION/repos?per_page=300 | grep clone_url | awk -F '"' '{print $4}' | xargs -n 1 -P 4 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment