dsh-enterworktree
DSH 版 enterworktree:创建(或复用)一个 git worktree,并自动开启一个指向该 worktree 路径的隔离 session,相当于 Claude Code 的 /enterworktree。 适合需要在独立Git worktree分支中进行代码修改和测试的开发者。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:scccy/dsh-enterworktreeREADME
Read the full README ↗配置
bundle patch(cordis.patch.yml)把插件挂载进 profile,配置项:
| 配置 | 默认 | 说明 |
|---|---|---|
layout | nested | nested=`.worktrees/ |
,sibling=../-- | ||
| `。 | ||
dotworktreesDir | .worktrees | worktree 目录名(嵌套布局下)。 |
autoOpenSession | true | 是否自动开隔离 session。 |