Skip to content

Instantly share code, notes, and snippets.

@deepredsky
Created December 2, 2016 10:51
Show Gist options
  • Save deepredsky/fe9618ebaad0501931775c8fe08cecfe to your computer and use it in GitHub Desktop.
Save deepredsky/fe9618ebaad0501931775c8fe08cecfe to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
curl -u deepredsky -s https://api.github.com/orgs/$1/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment