minghuo/dsh-github-sync ↗★ 0

dsh-github-sync

dsh 插件 · 用 GitHub 私有仓库多机同步:会话 sessions 备份与恢复、插件清单、设置;纯 REST(不需要 git 二进制),token 只写不回读,各机路径互不覆盖。 适合多设备间同步工作记录与配置的场景,需先建私有仓库并配置可写 PAT。

Package
dsh-github-sync
Compatibility
Unverified
Version
0.4.3
License
MIT
Last updated
Sep 13, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:minghuo/dsh-github-sync

使用

  1. 在 GitHub 建一个私有仓库(插件不代建)。公共仓库会被直接拒绝:会话日志里含本机绝对路径,清单里可能有你的配置。
  2. 建一个 fine-grained PAT,只授权这个仓库,权限勾 Contents: Read and write(要用 PR 模式再加 Pull requests: Read and write)。
  3. 打开 Web UI → 设置 → GitHub 同步,填仓库(owner/repo 或完整 URL)、分支、令牌,保存。
  4. 点「验证仓库」确认可写且为私有,再点「立即备份」。
  5. 在另一台机器上装同一个插件、填同一个仓库,就能在「会话备份」页看到别的机器推上来的内容并一键恢复。

定时自动备份在「概览 → 自动备份」里开启;autoSync 打开后按 intervalMinutes(最小 5 分钟)执行,可选启动时备份一次。