how to switch main branch code example
Example 1: how to switch another branch in git
git checkout 'another_branch'
Example 2: how to make new branch and switch in git
git checkout -b myNewBranch
git checkout 'another_branch'
git checkout -b myNewBranch