添加worktree
git worktree add [-f] [--checkout -b <new-branch>] <path> <commit-ish>
列出所有worktree
git worktree list [--porcelain]
worktree上锁
git worktree lock [--reason <string> <worktree>]
worktree解锁
git worktree unlock <worktree>
移动worktree到其他目录
git worktree move <worktree> <new-path>
清除那些检出目录已经被删除的worktree
git worktree prune -n --expire <expire>
删除worktree, 同时删除检出目录
git worktree remove -f <worktree>







网友评论