creating a branch from another branch in git code example
Example 1: create new branch git
$ git checkout -b [name_of_your_new_branch]
Example 2: how to switch branches in git
git checkout [branch name]
$ git checkout -b [name_of_your_new_branch]
git checkout [branch name]