If the current branch is not shown in the status bar, at the bottom of your codespace, right-click the status bar and select Source control.
Click the branch name in the status bar.
In the dropdown, either click the branch you want to switch to, or enter the name for a new branch and click Create new branch.

