git checkout -b <branchname1> <remote>/<branchname2>

Clone a remote branch and switch to it

Creates and switches to a new branch based on a remote branch

Specific examples:
git checkout -b my-feature origin/my-feature