Skip to content

Instantly share code, notes, and snippets.

@mayneyao
Forked from igrigorik/github.bash
Created March 5, 2019 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayneyao/5fa6a4b11df93cc11822da58731c9ce8 to your computer and use it in GitHub Desktop.
Save mayneyao/5fa6a4b11df93cc11822da58731c9ce8 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