Created
June 13, 2019 05:16
-
-
Save PaulTaykalo/7d926fc72ea0d9d8afa1284d68b041fd to your computer and use it in GitHub Desktop.
Hub Pull Requests aliases
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
# Creates pull request on develop branch with specified message (second line is desciption) | |
function hubd { | |
hub pull-request -b develop -m $1 | |
} | |
# Creates pull request on master branch with specified message (second line is desciption) | |
function hubm { | |
hub pull-request -b master -m $1 | |
} | |
# Show all open pull requests | |
function hubprl { | |
hub pr list -f "%Cyellow %U%sC%>(8)%i%Creset %t %n" | |
} | |
# Show pull requests for current brach | |
function hubprc { | |
hub pr list -h `git symbolic-ref --short HEAD` -f "%Cyellow %U%n%sC%>(8)%i%Creset %t %n" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment