Created
October 28, 2016 22:15
-
-
Save gardenunez/88420902652fc8c7978b214e0b1ece84 to your computer and use it in GitHub Desktop.
clone github organization repositories
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 $1:$2 -s "https://api.github.com/orgs/$3/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