await repo.switchBranch(branchName)
This will switch to any existing branch, or create one if needed.