how to create a new branch in git with switch code example
Example 1: creating new branch in git
Create a new branch named issue1.
$ git branch testing
Example 2: how to switch branches in git
git checkout [branch name]
Create a new branch named issue1.
$ git branch testing
git checkout [branch name]