change branche in git code example
Example 1: github go to a branch
git checkout <name>
Example 2: sitch a branch command line
$ git switch <existing_branch>
$ git switch -c <non_existing_branch>
git checkout <name>
$ git switch <existing_branch>
$ git switch -c <non_existing_branch>