git new branch from current and checkout code example
Example 1: git create new branch from current
git checkout -b topic/newbranch
Example 2: create branch from existing branch
$ git checkout -b myFeature dev
git checkout -b topic/newbranch
$ git checkout -b myFeature dev