checkout new branch from current branch code example
Example 1: git create new branch from current
git checkout -b topic/newbranch
Example 2: command to create a new branch in git
$ git checkout -b <branch-name>
git checkout -b topic/newbranch
$ git checkout -b <branch-name>