Skip to content

Instantly share code, notes, and snippets.

@mayneyao
Forked from igrigorik/github.bash
Created March 5, 2019 07:46
Embed
What would you like to do?
Open GitHub URL for current directory/repo...
alias gh="open \`git remote -v | grep git@github.com | 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