git switch

切换 Git 分支。要求 Git 版本在 2.23 以上。 另请参阅 git checkout。 更多信息:https://git-scm.com/docs/git-switch.

git switch {{分支名字}}

git switch {{[-c|--create]}} {{分支名字}}

git switch {{[-c|--create]}} {{分支名字}} {{指定提交}}

git switch -

git switch --recurse-submodules {{分支名字}}

git switch {{[-m|--merge]}} {{分支名字}}