git switch <branch_name>
git checkout <branch_name>
git checkout 'another_branch'
git checkout -b <new name>
//switch to existing branch
git checkout branchName
//create new branch and switch
git checkout -b newBranchName
git switch branch_name
git checkout branch_name
$ git checkout -b <new branch>
git checkout -b myNewBranch
git checkout -b mybranch
$ git checkout -b <new_branch>
git switch branch_name_to_switch_to
#you will switch to that branch and changes between them will take effect
Note: changes if you switch to a branch will change back once you switch
back to the original branch/
git branch new_branch_name
wonder.woman@highfive project % git checkout branch_name
#this let you keep edited files
wonder.woman@highfive project % git switch branch_name
// git checkout (nameOfTheBranch)
git checkout homePage
// Switching branch in git
git switch <branch_name>
git checkout <branch_name>