yq04 / dsh-git-remotes

목록에 있음

DSH web plugin: better-sidebar Git Remotes tab for fetch / ff-only pull / confirmed push

main기타 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:yq04/dsh-git-remotes

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 a9f1729동기화 2026. 8. 18.

dsh-git-remotes

English · 简体中文

DeepSeek Harness Web 插件:在 dsh-better-sidebar 里增加一个 Git 远程 Tab。

内置 Git Tab 负责暂存 / 提交 / 丢弃。本插件不替换它,只补它没有的远程动作:

  • 看当前分支、上游、ahead / behind、remote 列表
  • git fetch(全部或指定远程;默认 prune 失效跟踪分支)
  • git pull --ff-only(分叉则报错,不隐式 merge)
  • git push(面板二次确认;没有 force-push;没有模型工具自动推送)

安装

先装 better-sidebar,再装本插件(官方 web profile):

dsh plugin --profile web add dsh-better-sidebar
dsh plugin --profile web add git+https://github.com/yq04/dsh-git-remotes.git

没有 better-sidebar 时,host 路由仍会挂上,客户端 inject = ['betterSidebar'],Tab 不会出现。卸载:

dsh plugin --profile web remove dsh-git-remotes
dsh plugin --profile web --dump-config

需要系统 git。推送凭据走你本机已有的 credential helper / SSH agent,插件不存 token,错误信息会把 URL 里的 user:pass 打成 ***

行为边界

不做
fetch / ff-only pull / 确认后 push暂存、提交、revert(用内置 Git Tab)
远程名校验后再拼进 argvshell 拼接、--force
POST + application/json + Host 信任围栏给模型注册 push 工具
prune 清掉 [gone] 跟踪 ref自动删本地分支

Push 必须 confirm: true。这是有意学 Claude Code 捆绑插件 commit-commands 的用法:/commit-push-pr发起;本插件把同一约束做成侧边栏按钮,而不是斜杠命令,也不调用 gh pr create。Fetch 默认 prune,对应他们的 /clean_gone 所依赖的「先 fetch --prune」。

开发

pnpm install
pnpm typecheck
pnpm test
pnpm build

dsh.bundle.patchcordis.patch.yml。发布前 pnpm build(npm prepare 会跑 tsdown)。

仓库已打 GitHub topics:dshdsh-plugindsh-better-sidebargit

许可

BSD-3-Clause(与官方 plugin-template 相同)。

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨

저장소 정보

언어
TypeScript
라이선스
BSD-3-Clause
마지막 업데이트
2026. 8. 15. 오전 8:35

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.