Skip to content

Instantly share code, notes, and snippets.

@liango2
Forked from igrigorik/github.bash
Created May 13, 2016 00:16
Show Gist options
  • Save liango2/f1dfd109c200880d5caa293f6d66d8fe to your computer and use it in GitHub Desktop.
Save liango2/f1dfd109c200880d5caa293f6d66d8fe to your computer and use it in GitHub Desktop.
Open GitHub URL for current directory/repo...
alias gh="open \`git remote -v | grep [email protected] | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment