Skip to content

Instantly share code, notes, and snippets.

@wsakaren
Created December 7, 2013 14:14
Show Gist options
  • Save wsakaren/7842169 to your computer and use it in GitHub Desktop.
Save wsakaren/7842169 to your computer and use it in GitHub Desktop.
Get all private repos from an organization
curl -u "<user>" https://api.github.com/orgs/<orgname>/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