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 mergesmain
into itgit pr 4 someremote
- creates local branchpr/4
fromsomeremote
remote and checks it outgit pr-merge
- merges the currently checked out PR intomain
git pr-clean
- removes all pr/* branches from your local repo
I'd consider adding the change to the original gist if the process works, the thing I'd be worried about in this setup is if you
git pr
from a local branch, it doesn't make sure that the base is on latest master.