Git Worktree Notes
git worktree
,不切换 git 分支,又在多个分支同时工作。
git worktree list
list all worktreegit worktree add [-b <new-branch>] <path> [<commit-ish>]
create a worktree at path and checkout commit-ish into itgit worktree remove <worktree>
remove the special worktreegit worktree prune
prune dirty infos
Was this page helpful?