gitでリモート追跡ブランチを上流ブランチ(upstream)とするブランチを作成するには

https://dev.classmethod.jp/articles/how-to-checkout-remote-branch/

git checkout 《originのブランチ名》

たとえば「origin/feature_branch1」をupstreamとした「feature_branch1」ブランチを作成するには「git checkout feature_branch1」のコマンドを指定するだけでよい。
checkoutコマンドとしては例外的な動きだが、これでfeature_branch1ブランチの作成とupstreamの設定をして現在ブランチをfeature_branch1に切り替えるという動作になる。