Skip to content

Instantly share code, notes, and snippets.

@aitor
Created July 2, 2010 12:29
Show Gist options
  • Save aitor/461292 to your computer and use it in GitHub Desktop.
Save aitor/461292 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'open-uri'
require 'rubygems'
require 'nokogiri'
uri = "http://whatthecommit.com"
doc = Nokogiri::HTML.parse(open(uri).read)
puts doc.at("//div[@id='content']/p").inner_html
# chmod + x the script
# and just... git ci -m "`wtc`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment