git checkout

git checkout <branchName>
or
git checkout --track origin/<branchName>
or
git checkout <branchName> origin/<branchName>



%
git checkout -b v2.9.5 --track origin/v2.9.5