Download this file.
$ wget https://gist.githubusercontent.com/asika32764/5824bc66a6756dc3031e/raw/92f072b3c1737553bf08be2fa9695c094e607ae6/get-pr
Then mv
to /usr/local/bin
(Windows should put in a folder which in Environment Variable Path, I'm used to put in C:\bin
)
$ chmod +x get-pr
$ mv get-pr /usr/local/bin/get-pr
cd to your git project
Then execute:
$ get-pr upstream 123
$ checkout pr-123
OK we will pull and checkout to this PR.
$ get-pr {remote-name} {PR-ID}
It is convenience to review PR or contribute to others PR.
KISS: