git create new branch switch branch code example Example: how to switch another branch in git git checkout 'another_branch'