git create branch from main code example
Example 1: create and go to branch
git checkout -b <branch_name>
Example 2: create new branch git
$ git checkout -b [name_of_your_new_branch]
git checkout -b <branch_name>
$ git checkout -b [name_of_your_new_branch]