how to change master branch to another branch in git code example Example: git switch branch to another branch git checkout <name>