dsh-git-worktree
DSH 会话与 Git 工作树(worktree)绑定管理插件
AI 分析
核心用途是为每个会话一键创建隔离的 Git 工作树和分支,并提供绑定管理面板。适合在使用 DSH 进行代码开发时,需要将会话与独立代码分支进行隔离管理的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:KHG420/git-worktree說明文件
閱讀完整 README ↗配置 / Configuration
profile 行支持以下配置项(均可选) / The profile row accepts (all optional):
- id: git-worktree
name: dsh-git-worktree
config:
worktreesDir: .dsh-wt # 新工作树的默认父目录 / default parent dir for new worktrees
timeoutMs: 30000 # 每条 git 命令的超时时间 / per-command git timeout
stdoutMaxBytes: 1000000 # 捕获 stdout 的上限 / captured stdout cap
stderrMaxBytes: 65536 # 保留 stderr 摘要的上限 / retained stderr excerpt cap