Last active
March 17, 2016 03:34
-
-
Save ivan-krukov/5c9b0856d90583dc1ca8 to your computer and use it in GitHub Desktop.
Clone all repos for a given user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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