git terminal for changing the master branc code example Example: how to switch branches in git git checkout [branch name]