make new branch from current branch code example
Example 1: make a new branch git
git checkout -b branch-name
Example 2: git create new branch from current
git checkout -b topic/newbranch
Example 3: create branch from another branch
$ git checkout -b myFeature dev
Example 4: git checkout branch
truelover@PEACE project % git checkout master
truelover@PEACE project % git checkout branch_name
#create branch
truelover@PEACE project % git checkout -b new_branch_name
Example 5: git command to create a branch from another branch
$ git checkout -b myfeature dev