github go to a branch code example
Example 1: sitch a branch command line
$ git checkout <existing_branch>
$ git checkout -b <new_branch>
Example 2: how to switch branches in git
git checkout [branch name]
Example 3: github go to a branch
git checkout <name>
Example 4: canging branch in git
$ git branch