Git 2.23 introduces a new command git switch
— after reading the docs, it seems pretty much the same as git checkout <branchname>
can someone explain the difference or use case?
Two new commands “git switch” and “git restore” are introduced to
split “checking out a branch to work on advancing its history” and
“checking out paths out of the index and/or a tree-ish to work on
advancing the current history” out of the single “git checkout”
command.