Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikeselander/a8bc47b2d23c505b02de479d66c69395 to your computer and use it in GitHub Desktop.
Save mikeselander/a8bc47b2d23c505b02de479d66c69395 to your computer and use it in GitHub Desktop.
Clone all repos from a GitHub organization
curl -u [[USERNAME]] -s https://api.github.com/orgs/[[ORGANIZATION]]/repos?per_page=200 | ruby -rubygems -e 'require "json"; 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