@alpacachen/dsh-simple-worktree
创建Git工作区分支并注册为DSH工作空间
AI 分析
Git工作流辅助插件,适合需要在DSH中快速创建隔离工作区和管理分支的开发者。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:alpacachen/dsh-worktree說明文件
閱讀完整 README ↗Usage
Install
dsh plugin --profile web add @alpacachen/dsh-simple-worktree
Restart dsh web after installation.
You can also install from GitHub with dsh plugin --profile web add github:alpacachen/dsh-worktree.
Create from a new session
- Open New Session in a Git Workspace.
- Choose Create worktree above the composer.
- Enter a task name. The repository's main branch is selected by default.
- Click Create and open.
Manage worktrees
Open Settings → Worktree Management to scan every Workspace for Git projects and linked worktrees, inspect their branch and dirty state, and remove worktrees that are no longer needed.
The worktree is created at:
project.worktrees/login-fix/
└── branch: task/login-fix
The new Workspace is named /. Removing the worktree Workspace does not delete its Git branch.