git worktree,不切换 git 分支,又在多个分支同时工作。

  • git worktree list list all worktree
  • git worktree add [-b <new-branch>] <path> [<commit-ish>] create a worktree at path and checkout commit-ish into it
  • git worktree remove <worktree> remove the special worktree
  • git worktree prune prune dirty infos