Skip to content

Instantly share code, notes, and snippets.

@albertlieyingadrian
Last active March 12, 2019 11:51
Show Gist options
  • Save albertlieyingadrian/3a59129dd5f9ecdec4b60483c4a755bd to your computer and use it in GitHub Desktop.
Save albertlieyingadrian/3a59129dd5f9ecdec4b60483c4a755bd to your computer and use it in GitHub Desktop.
Clone all repos in an organization using ssh url
curl -s https://$USERNAME:[email protected]/orgs/$ORGANIZATION/repos?per_page=200&page=1 | 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