github how to checkout and create new branch code example
Example 1: create branch from another branch
$ git checkout -b myFeature dev
Example 2: git create and checkout branch
$ git branch <branch_name>
$ git checkout <branch_name>
$ git checkout -b myFeature dev
$ git branch <branch_name>
$ git checkout <branch_name>