Skip to content

Instantly share code, notes, and snippets.

@tonyyates
Last active March 15, 2017 10:57
Show Gist options
  • Save tonyyates/6af5fad44697f728f13517ba4aa099ea to your computer and use it in GitHub Desktop.
Save tonyyates/6af5fad44697f728f13517ba4aa099ea to your computer and use it in GitHub Desktop.
Clone all Repos from an ORG
Needs Ruby 1.9 as a minimum
curl -s https://api.github.com/orgs/<insert org>/repos | ruby -rjson -e '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