Created
April 25, 2019 19:47
-
-
Save jacobgarcia/355ee5b18b2025977de23ad567b84553 to your computer and use it in GitHub Desktop.
Clone All Private Repos of An Organization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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