Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holodigm/8977f8e07e39e50d3d7fa4bc365ba03f to your computer and use it in GitHub Desktop.
Save holodigm/8977f8e07e39e50d3d7fa4bc365ba03f to your computer and use it in GitHub Desktop.
Clone all repos from a GitHub organization
curl -u <token>:x-oauth-basic -s https://api.github.com/orgs/<repo-name>/repos\?per_page\=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@holodigm
Copy link
Author

holodigm commented May 19, 2016

https://github.com/settings/tokens then
curl -u <token>:x-oauth-basic -s https://api.github.com/orgs/<repo-name>/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