Created
June 5, 2014 06:15
-
-
Save nir0s/f2b6827011497fbad7bf to your computer and use it in GitHub Desktop.
one liner to clone an entire github organization in bash
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
# run ./github-clone-org.sh #ORG_NAME# | |
ORG_NAME=$1 | |
curl -s https://api.github.com/orgs/${ORG_NAME}/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