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
Sign in to enable bookmarking, reminders, progress-tracking and more...
Related
git checkout -b <branchname>
git checkout <branchname>
git checkout -
git checkout --<pathname>
git checkout HEAD <pathname>
git checkout --ours <pathname>
git checkout --theirs <pathname>
git checkout -m <branchname>
git checkout --orphan <branchname>
git checkout -b <branchname> <commit>
git checkout -t <remote>/<branchname>