git checkout \'another_branch\'
Or
git checkout origin \'another_branch\'
I am using this to switch one branch to another anyone you can use it works for me like charm.
git switch [branchName] OR git checkout [branchName]
ex: git switch develop OR git checkout develop