Skip to content

Instantly share code, notes, and snippets.

View paustin01's full-sized avatar

Phil Austin paustin01

  • El Dorado Hills, CA
View GitHub Profile
@paustin01
paustin01 / gist:8042926
Created December 19, 2013 17:21
Simple ruby script to launch Github in chrome from a mac (which could be parameterized) to a particular page for the repository that you're currently on in your shell. Feel free to tweak and improve to your heat's content.
#!/usr/bin/env ruby
remote = ARGV[0]
branch = ARGV[1] || '.'
page = ARGV[2] || 'tree'
# Ensure we're in a git repo
unless Dir.glob('.*').include?('.git')