dsh-worktree
开发工具 活跃维护

dsh-worktree

alpacachen/dsh-worktree

Git原生工作树能力,可快速创建独立代码工作副本并自动打开为关联工作区,无需手动配置路径与环境,不同分支的工作副本互不干扰,日常多分支并行开发时无需反复切换环境。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
None
开源协议
109 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:alpacachen/dsh-worktree
git clone https://github.com/alpacachen/dsh-worktree.git
git clone git@github.com:alpacachen/dsh-worktree.git
README.md main

dsh-simple-worktree

A lightweight Git worktree plugin for DeepSeek Harness.

简体中文 · English

Features

  • Create a Git worktree from any Git Workspace.
  • Choose the current branch or the repository's main branch.
  • Register and open the new worktree as a DSH Workspace.
  • Create task branches as task/<name>.
  • No additional service or project configuration.
  • Supports DSH themes, Chinese, and English.

Usage

Install

dsh plugin --profile web add github:alpacachen/dsh-worktree

Restart dsh web after installation.

If pnpm reports MINIMUM_RELEASE_AGE_VIOLATION for packages already in the profile lockfile, retry this command with --config.minimum-release-age=0. If pnpm blocks the Git package build, add dsh-simple-worktree: true under allowBuilds in the profile's pnpm-workspace.yaml, then retry.

Create a worktree

  1. Open a Git Workspace.
  2. Open the Workspace menu and choose Create worktree.
  3. Enter a task name, such as login-fix.
  4. Choose Current branch or Main branch.
  5. Click Create and open.

The worktree is created at:

project.worktrees/login-fix/
└── branch: task/login-fix

The new Workspace is named <parent>/<task>.