git branch
git branchgit branch namegit branch -d nameWhat it does:
git branch— List branches. The one you’re on has a star.git branch name— Create a branch. You don’t switch to it. Usegit switch nameto switch.git branch -d name— Delete a branch (only if it was merged).
To create and switch in one step: git switch -c name.