Skip to content

Instantly share code, notes, and snippets.

@johnloy
Forked from igrigorik/github.bash
Created February 4, 2022 16:52
Show Gist options
  • Save johnloy/9f182512bab731f3b3b540b9bba4fdb1 to your computer and use it in GitHub Desktop.
Save johnloy/9f182512bab731f3b3b540b9bba4fdb1 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