Skip to content

Instantly share code, notes, and snippets.

@npazo
Created April 28, 2017 16:48
Show Gist options
  • Save npazo/1331ad9f9e20ec9fc1ee2be60a3ae71a to your computer and use it in GitHub Desktop.
Save npazo/1331ad9f9e20ec9fc1ee2be60a3ae71a to your computer and use it in GitHub Desktop.
bash Function to Open Pull Request
pr() {
branch=`git rev-parse --abbrev-ref HEAD`
github_url=`git remote get-url origin | sed 's/....$//'`
open $github_url/compare/$branch?expand=1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment