yq04/dsh-git-remotes
DSH 网页插件:更好的侧边栏 Git 远程标签页,支持拉取 / 仅快进拉取 / 确认推送
项目介绍Project Overview
dsh-git-remotes 是 DSH Web 插件,为 dsh-better-sidebar 增加 Git 远程 Tab。可查看分支、上游、ahead/behind 与远程列表,执行 fetch(默认 prune)、pull --ff-only,以及二次确认后的 push;不做暂存、提交、丢弃,也无 force-push 或模型自动推送。适合在侧边栏处理远程同步。需先装 better-sidebar 与系统 git,否则 Tab 不出现。
dsh-git-remotes is a DSH Web plugin that adds a Git Remotes tab to dsh-better-sidebar. It shows the current branch, upstream, ahead/behind status, and remotes, and runs fetch with prune by default, pull --ff-only, and push after explicit confirmation. It does not stage, commit, discard, force-push, or expose push to model tools. Use it for sidebar-based remote sync. It requires better-sidebar and system git; otherwise the tab does not appear.
请帮我了解并安装插件:【dsh-git-remotes】【https://github.com/yq04/dsh-git-remotes】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-better-sidebar
把 yq04/dsh-git-remotes 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
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) |
| 远程名校验后再拼进 argv | shell 拼接、--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.patch 在 cordis.patch.yml。发布前 pnpm build(npm prepare 会跑 tsdown)。
仓库已打 GitHub topics:dsh、dsh-plugin、dsh-better-sidebar、git。
许可
BSD-3-Clause(与官方 plugin-template 相同)。
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill