Skip to content

Instantly share code, notes, and snippets.

@himalayashinde
Forked from igrigorik/github.bash
Created April 17, 2018 03:06
Show Gist options
  • Save himalayashinde/3163a3d504627a809102be0d99d9559e to your computer and use it in GitHub Desktop.
Save himalayashinde/3163a3d504627a809102be0d99d9559e to your computer and use it in GitHub Desktop.
Open GitHub URL for current directory/repo...
alias gh="open \`git remote -v | grep [email protected] | 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