git go to master branch code example
Example 1: create and go to branch
git checkout -b <branch_name>
Example 2: how to switch to a master which is already added
git checkout master
Example 3: how to switch branches in git
git checkout [branch name]