Skip to content

Instantly share code, notes, and snippets.

@ivan-krukov

ivan-krukov/clone_all.sh

Last active Mar 17, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.