首页/ AI 技能 / @skilllib/skill-2117939930272415215
Skill站外收录 @skilllib/skill-2117939930272415215

flow-next-worktree-kit

提供 Git 工作树的全生命周期管理能力,支持创建、列出、切换和安全清理隔离的工作环境,并可为指定工作树复制 .env 配置文件,适用于并行开发、代码评审及工作区净化等场景。

0.0 (0) 38 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Worktree kit Use the manager script for all worktree actions. ```bash bash ${CLAUDE_PLUGIN_ROOT}/skills/flow-next-worktree-kit/scripts/worktree.sh <command> [args] ``` Commands: - `create <name> [base]` - `list` - `switch <name>` (prints path) - `cleanup` - `copy-env <name>` Safety notes: - `create` does not change the current branch - `cleanup` does not force-remove worktrees and does not delete branches - `cleanup` deletes the worktree directory (including ignored files); removal fails if the worktree is not clean - `.env*` is copied with no overwrite (symlinks skipped) - refuses to operate if `.worktrees/` or any worktree path component is a symlink - `copy-env` only targets registered worktrees - `origin` fetch is optional; local base refs are allowed - fetch from `origin` only when base looks like a branch - Worktrees live under `.worktrees/`

评论 0

还没有评论,来抢沙发。