Skip to content

Instantly share code, notes, and snippets.

@commuterjoy
Created March 11, 2014 12:19
Show Gist options
  • Save commuterjoy/9484497 to your computer and use it in GitHub Desktop.
Save commuterjoy/9484497 to your computer and use it in GitHub Desktop.
Clone all an organisation's GitHub repositories
# usage ./get__repos.sh | /bin/sh
org=https://api.github.com/orgs/Financial-Times/repos?per_page=100
[email protected]:Financial-Times/%.git
curl -s $org | ruby -e "require 'json';JSON.parse(STDIN.read).each{|r|puts r['name']}" | xargs -I % echo "git clone --progress $clone_url"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment