Long syntax: git checkout --track -b branchname origin/branchname Short syntax: git checkout -t origin/branchname