Stealing a bunch of awesome git/ruby stuff from @bkuhlmann