Git Switch and Git Restore

git switch and git restore are two relatively new git command to clarify different use cases of git-checkout.

newoldfunctionality
git switch bgit checkout bswitch to a branch
git restore -- filegit checkout -- filerestore a file from another branch or source

Additional Cheatsheet

newoldfunctionality
git switch -c new_branchgit checkout -b new_branchcreate and switch to a branch

Reference