Created
April 28, 2017 16:48
-
-
Save npazo/1331ad9f9e20ec9fc1ee2be60a3ae71a to your computer and use it in GitHub Desktop.
bash Function to Open Pull Request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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