Skip to content

Instantly share code, notes, and snippets.

@pascal08
Created June 18, 2018 10:40
Show Gist options
  • Save pascal08/3c949912a22ec12f1d9381818514aff0 to your computer and use it in GitHub Desktop.
Save pascal08/3c949912a22ec12f1d9381818514aff0 to your computer and use it in GitHub Desktop.
Clone all repos of a user (using curl and bash only)
curl -s https://api.github.com/users/jobapis/repos?per_page=200 | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment