Skip to content

Instantly share code, notes, and snippets.

@allen-munsch
Created April 2, 2018 15:30
Show Gist options
  • Save allen-munsch/f0fe34a469f01c9551f4291bbc90f0b2 to your computer and use it in GitHub Desktop.
Save allen-munsch/f0fe34a469f01c9551f4291bbc90f0b2 to your computer and use it in GitHub Desktop.
clone github $USER repos
curl -s https://api.github.com/users/$USER/repos | python git_parse.py | xargs -I{} git clone {}
import fileinput
import json
lines = ''
for line in fileinput.input():
lines += line
ok = json.loads(lines)
for repo in ok:
print(repo['clone_url'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment