Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
Last active March 4, 2021 19:16
Show Gist options
  • Save jonschlinkert/093bcdc74f5e74556d7ec1d26d7af7c0 to your computer and use it in GitHub Desktop.
Save jonschlinkert/093bcdc74f5e74556d7ec1d26d7af7c0 to your computer and use it in GitHub Desktop.
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