Skip to content

Instantly share code, notes, and snippets.

@hauselin
Forked from igrigorik/github.bash
Created October 17, 2020 13:22
Show Gist options
  • Save hauselin/640c7292762e834a389ef5a28b5a1264 to your computer and use it in GitHub Desktop.
Save hauselin/640c7292762e834a389ef5a28b5a1264 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