xxxxxxxxxx
// create the branch
git branch <branch_name>
//change to branch
git checkout <branch_name>
xxxxxxxxxx
//switch to existing branch
git checkout branchName
//create new branch and switch
git checkout -b newBranchName
xxxxxxxxxx
git switch <branch_name>
#Ex: git switch main
(OR)
git checkout <branch_name>
#Ex: git switch dev
xxxxxxxxxx
git switch <branch_name> // switches to branch
git checkout <branch_name> // deletes file that were not pushed and just copies the branch to local repo