これでgitコマンドのエイリアスを作成
git config --global alias.pr-setup "config --add remote.upstream.fetch +refs/pull/*/head:refs/remotes/upstream/pr/*"
プロジェクト内で
git pr-setup
これで
git fetch upstream
git checkout -b test-pr6666 upstream/pr/666
超絶参考 https://mattn.kaoriya.net/software/git/20140708105946.htm