how to checkout to a different branch code example
Example 1: how to checkout to another branch in git
git checkout -b branch
Example 2: how to checkout to another branch in git
git checkout branch name
git checkout -b branch
git checkout branch name