Skip to content

Instantly share code, notes, and snippets.

@warmwaffles
Created September 19, 2013 18:56
Show Gist options
  • Save warmwaffles/6628193 to your computer and use it in GitHub Desktop.
Save warmwaffles/6628193 to your computer and use it in GitHub Desktop.
#!/bin/bash
# To be invoked like so
# ghc 2days
origin=`git remote -v | head -1 | cut -d":" -f2 | cut -d"." -f1`
branch=`gcb`
open "https://github.com/${origin}/compare/${branch}@{$1}...${branch}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment