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
xxxxxxxxxx
git switch <branch_name> # to switch to a specific branch
git checkout <branch_name> # checkout which branch you're in now