Last active
March 12, 2019 11:51
-
-
Save albertlieyingadrian/3a59129dd5f9ecdec4b60483c4a755bd to your computer and use it in GitHub Desktop.
Clone all repos in an organization using ssh url
This file contains hidden or 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 -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