chagne branch in git code example Example 1: github go to a branch git checkout <name> Example 2: sitch a branch command line $ git branch