how to get main to branch code example
Example 1: make a new branch git
git checkout -b branch-name
Example 2: creating new branch in git
Create a new branch named issue1.
$ git branch testing
git checkout -b branch-name
Create a new branch named issue1.
$ git branch testing