syntax of git checkout for a single file code example Example: git checkout git checkout -b origin/branch-name git checkout -b branch-name