create new branch and switch to it code example
Example 1: create and go to branch
git checkout -b
Example 2: git create new branch
// create and checkout new branch in one line
git checkout -b new_branch
Example 3: git switch branch
git switch
git checkout
Example 4: git switch branch
git switch branch_name
git checkout branch_name