Skip to content

Instantly share code, notes, and snippets.

@ssokolow
Forked from ches/snippet.sh
Created June 24, 2009 04:21
Show Gist options
  • Select an option

  • Save ssokolow/135000 to your computer and use it in GitHub Desktop.

Select an option

Save ssokolow/135000 to your computer and use it in GitHub Desktop.
ches's github alias modified for Linux
alias github='br=$(git branch --contains HEAD | sed -En "s/^\* //p"); open $(git config -l | grep "remote.origin.url" | sed -En "s/remote.origin.url=git(@|:\/\/)github.com(:|\/)(.+)\/(.+).git/https:\/\/github.com\/\3\/\4\/tree\/${br}/p")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment