Create a gist now

Instantly share code, notes, and snippets.

Download source code for all RailsCasts episodes. You may want to cd into an empty directory first.
require "rubygems"
require "octokit" # gem install octokit
1.upto(5) do |page|
Octokit.repositories("railscasts", page: page, per_page: 100).each do |repo|
system "git clone git://{}"

I've slightly changed the script to clone only repositories which have not been cloned yet in this gist or this Ruby project if you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment