Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Clone all repos for the given user/org. Just replace <USERNAME> and run this in the command line.
curl -s https://api.github.com/users/<USERNAME>/repos?per_page=100 | ruby -rjson -e 'JSON.load(STDIN.read).each {|repo| %x[git clone #{repo["clone_url"]} ]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment