Wednesday, January 5, 2011

patch straight from github!

Wow, this is a cool trick...

1) go to any code on github
2) click on the "commit" link for any changeset
3) add ".diff" to the url
4) now copy the url and voila:

curl [url] | patch -d [dir]


curl | sudo patch -d /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails

So easy!

(courtesy of and

No comments: