Branching workflowGit
git checkout
git checkout
git switch
Switch branches or restore files to a known state.
Command
git switch
Example usage
Move between existing branches or create new feature branches.
git switch <branch>
git checkout -b <new_branch>
Related tags
Branching workflowgit switchversion-controlworkflow