结论:发现 5 个有上游更新的仓库,其中 4 个同时存在本地改动,不能直接更新;只有 /root/projects/github-stars-catalog 是干净落后,适合后续快进更新。
| 项目 | 状态 | 本地改动 | 建议 |
|---|---|---|---|
/opt/TencentDB-Agent-Memory | behind 6 | src/gateway/server.ts、src/gateway/types.ts | 涉及当前 memory_tencentdb,需先备份 diff;若更新可能影响记忆 sidecar。 |
/opt/daily-stock-analysis | behind 30 | 2 个源码文件 + 未跟踪 compose.yml | 生产项目,需 snapshot 后再评估更新。 |
/opt/prompts-chat | behind 82 | compose.yml | 当前线上 prompts.chat 相关,不能裸 pull。 |
/root/.hermes/hermes-agent | behind 470 | 未跟踪 plugins/memory/memory_tencentdb、{bak_dir}/、{ctx_path} | Hermes 主程序;更新前必须写 restart context,并清理异常占位目录。 |
/root/projects/github-stars-catalog | behind 6 | 无 | 干净,可后续执行 git pull --ff-only。 |
/root/projects/cards-api | 无 remote/upstream | 多项本地改动,含 .env、数据库、源码、备份 | 本地项目,不属于可检查上游更新范围。 |
/root 检测到疑似仓库标记但 git 命令判定不是有效仓库,已视为无效项跳过。github-stars-catalog;其余每个项目先备份 diff/未跟踪文件,再单独处理。