You can create a new branch using git branch:
$ git branch <new-branch>You can switch to the new branch using git switch:
$ git switch <new-branch>You can do both steps in one by using the -c flag with git switch and passing in the name of the new branch you want to create:
$ git switch -c <new-branch>