git create or checkout branch code example
Example 1: git create and checkout branch
$ git checkout -b <branch_name>
Example 2: git create and checkout branch
$ git branch <branch_name>
$ git checkout <branch_name>
$ git checkout -b <branch_name>
$ git branch <branch_name>
$ git checkout <branch_name>