LongSir0419/dsh-git-branch-manage0

@wanghailong0419/dsh-git-branch-manage

DSH bundle: Git 分支管理——会话 header 与新会话欢迎页显示当前分支,支持切换/新建/更新/拉取/推送/删除(本地分支,IDEA 风格树)

包名
@wanghailong0419/dsh-git-branch-manage
版本
0.1.0
许可证
MIT
最近更新
2026年8月24日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LongSir0419/dsh-git-branch-manage

dsh-git-branch-badge

DSH bundle: 当前 Git 分支徽标。在会话 header 与新会话欢迎页显示当前分支,支持切换、新建、更新、拉取、推送、删除(仅本地分支,IDEA 风格目录树)。

安装

dsh plugin --profile web add @wanghailong0419/dsh-git-branch-badge

或通过 toolkit 一并安装:

dsh plugin --profile web add @wanghailong0419/dsh-toolkit

功能

  • 会话 header 与 hero 新会话页显示当前分支(图标与"创造模式"chip 同款、同色、同字号)
  • 左键:打开分支菜单(本地/远程,IDEA 风格树,本地只展示最近 7 天活跃分支)
  • 右键:切换 / 更新(pull) / 拉取(fetch) / 推送(push)
  • 新建分支:先 pull 当前分支,再创建并切换,带前缀联想
  • 删除分支:仅本地、安全删除(-d),拒绝删除当前分支与远程分支
  • 切换确认弹窗、操作中白色点阵 loading

结构

lib/index.js    host half: BranchBadgeGateway(TypertRemoteService + @Remote)
lib/client.js   client half: 徽标 / 菜单 / hero chip(ctx.remote.$mount)
cordis.patch.yml bundle patch(dsh plugin add 自动激活)

License

MIT