Git Switch
This command was added to Git in 2019 (2.23), after user feedback that checkout was destructive in some cases.
switch updates the working tree, and index to match the new branch.
Important
The destructive form of this command is
--discard-changes.
Make A New Branch
git switch -c newbranch
Make A New Branch From A Specific Commit
git switch -c newbranch <commit>