how to write new code in new branch in git code example
Example 1: create new branch git from master
git checkout -b new-branch-name
Example 2: create branch from existing branch
$ git checkout -b myFeature dev
git checkout -b new-branch-name
$ git checkout -b myFeature dev