Skip to content

Instantly share code, notes, and snippets.

@ivan-krukov
Last active March 17, 2016 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivan-krukov/5c9b0856d90583dc1ca8 to your computer and use it in GitHub Desktop.
Save ivan-krukov/5c9b0856d90583dc1ca8 to your computer and use it in GitHub Desktop.
Clone all repos for a given user
#Get repo list, filter git urls
GITHUB_NAME=octocat
curl https://api.github.com/users/$GITHUB_NAME/repos > github_response
for repo in `cat github_response | jq -r '.[] | .git_url'`; do;
git clone $repo;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment