git how to git switch to an open branch 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]