how to get out of branch git code example
Example 1: command to create a new branch in git
$ git checkout -b <branch-name>
Example 2: git new branch create
git checkout -b <new-branch>
$ git checkout -b <branch-name>
git checkout -b <new-branch>