Either copy the aliases from the .gitconfig
or run the commands in add-pr-alias.sh
Easily checkout local copies of pull requests from remotes:
git pr 4
- creates local branchpr/4
from the githubupstream
(if it exists) ororigin
remote and checks it outgit pr 4 someremote
- creates local branchpr/4
fromsomeremote
remote and checks it outgit pr-clean
- removes all pr/* branches from your local repogit spr
- Same asgit pr
command, but for bitbucket/stash remotes
I wonder if
git pr 123 remotename
should createpr/remotename/123
instead ofpr/123
. My current situation is that I have a PR to some project and somebody had a PR for my PR.