What does the command git checkout branchname do?
A. Adds the new branch
B. Switches from main branch to the new branch
C. Commits the new branch
D. Deletes the new branch
answer : Switches from main branch to the new branch