Created
June 4, 2012 06:01
-
-
Save ryanb/2866591 to your computer and use it in GitHub Desktop.
Download source code for all RailsCasts episodes. You may want to cd into an empty directory first.
This file contains 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
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://github.com/railscasts/#{repo.name}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've slightly changed the script to clone only repositories which have not been cloned yet in this gist https://gist.github.com/gawlista/4978183 or this Ruby project https://github.com/gawlista/railscasts-episodes if you like.