Skip to content

Instantly share code, notes, and snippets.

@drsnyder
drsnyder / gh.rb
Created August 18, 2011 23:41 — forked from loganlinn/gh.rb
Quick script to open GitHub pages for the repository in the working directory.
#!/usr/bin/ruby
require 'rubygems'
require 'grit'
begin
r = Grit::Repo.new Dir.pwd
rescue
puts "Did not detect git repository"
exit