Skip to content

Instantly share code, notes, and snippets.

@modsognir
Created April 14, 2014 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save modsognir/10646706 to your computer and use it in GitHub Desktop.
Save modsognir/10646706 to your computer and use it in GitHub Desktop.
cloning a bunch of repos
#!/usr/bin/env ruby -w
require 'json'
repos = JSON.parse(File.read('repos')).map {|e| e['name']}
repos.each do |repo|
puts "=== #{repo}"
`git clone mas:#{repo} ex/#{repo}`
end
for (( i=1; i<=10; i++ ))
do
curl -H "Authorization: token <github token>" 'https://api.github.com/orgs/moneyadviceservice/repos?page=$1' >> repos
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment