git make branch and checkout code example
Example 1: git command to create a branch from another branch
$ git checkout -b myfeature dev
Example 2: command to create a new branch in git
$ git checkout -b <branch-name>
$ git checkout -b myfeature dev
$ git checkout -b <branch-name>