switch -t branch git code example Example 1: git change branch git checkout <<branchName>> Example 2: how to switch branches git git checkout <existing branch>