git switch 与 git checkout 的职责演进 | Git

本章覆盖:`git switch`;switch branch;create and switch;`git checkout`;historical multi-purpose command;restore file;detached HEAD;modern teaching prefers switch / restore for clearer intent;old project scripts may still use checkout。

本章知识点

  • git switch
  • switch branch
  • create and switch
  • git checkout
  • historical multi-purpose command
  • restore file
  • detached HEAD
  • modern teaching prefers switch / restore for clearer intent
  • old project scripts may still use checkout