Skip to content

Instantly share code, notes, and snippets.

@maxdevjs
Forked from igrigorik/github.bash
Created November 12, 2018 19:24
Show Gist options
  • Save maxdevjs/7f47fccca7538644246e043e761c3b33 to your computer and use it in GitHub Desktop.
Save maxdevjs/7f47fccca7538644246e043e761c3b33 to your computer and use it in GitHub Desktop.
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