git branch git bash code example
Example 1: git branch
git checkout -b <new-branch-name> # create a new branch
git switch <branch-name> # Switch branch
Example 2: git branch
$ git checkout -b iss53
Switched to a new branch "iss53"
git checkout -b <new-branch-name> # create a new branch
git switch <branch-name> # Switch branch
$ git checkout -b iss53
Switched to a new branch "iss53"