Skip to content

Instantly share code, notes, and snippets.

@thbishop
Created June 17, 2013 20:25
Show Gist options
  • Save thbishop/5800028 to your computer and use it in GitHub Desktop.
Save thbishop/5800028 to your computer and use it in GitHub Desktop.
[alias]
pr = "!open \"$(git remote -v | grep origin | grep push | cut -f 2 | cut -d \" \" -f 1 | sed -e \"s|git@\\(.*\\):\\(.*\\).git|https://\\1/\\2|\")/pull/new/$(git rev-parse --abbrev-ref HEAD)\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment