[Git] git clone したリポジトリの master 以外のブランチを持ってくる
リモートのブランチを checkout するの memo.
% git branch -r
origin/HEAD -> origin/master
origin/dev
origin/master
% git checkout -b dev origin/dev
Branch dev set up to track remote branch dev from origin.
Switched to a new branch 'dev'
% git branch -a
* dev
master
remotes/origin/HEAD -> origin/master
remotes/origin/dev
remotes/origin/master