how to switch to branch github code example Example 1: git change branch git checkout <<branchName>> Example 2: sitch a branch command line $ git branch