Skip to content

Instantly share code, notes, and snippets.

@jacobgarcia
Created April 25, 2019 19:47
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 jacobgarcia/355ee5b18b2025977de23ad567b84553 to your computer and use it in GitHub Desktop.
Save jacobgarcia/355ee5b18b2025977de23ad567b84553 to your computer and use it in GitHub Desktop.
Clone All Private Repos of An Organization
curl -u $token:x-oauth-basic -s https://api.github.com/orgs/$organization/repos\?page\=1\&per_page=100 | 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