Files
karuo-ai/01_卡资(金)/金仓_存储备份/参考资料/全仓库SCM防崩溃_批量报告_20260612.md
2026-07-19 00:21:46 +08:00

1.5 KiB
Raw Blame History

全仓库 SCM 防崩溃 · 批量执行报告

执行时间2026-06-12
脚本:01_卡资/金仓_存储备份/脚本/cursor_scm_guard_apply.sh

结果

数量
扫描 Git 仓库 73
.gitignore 防护块 72
.vscode/settings.json 72

扫描根目录

  • ~/Documents/个人
  • ~/Documents/开发
  • ~/Documents/1、金项目
  • ~/Documents/工作手机

每仓自动写入

.gitignore 块(标记 卡若AI SCM 防崩溃

  • node_modules/**/node_modules/
  • .venv/**/.venv*/.venv311/
  • **/*_nested_git_backup/**/backups/dns/
  • Cursor持久对话_MCP_*/.codegraph/.smart-env/
  • 大体积:.apk.mp4.zip

.vscode/settings.json

{
  "git.autorefresh": false,
  "git.untrackedChanges": "hidden",
  "scm.diffDecorations": "none",
  "git.openRepositoryInParentFolders": "never"
}

专项修复

仓库 问题 处理
cunkebao_v3 +621万行 node_modules 入 ignore
存客宝/cunkebao 2331 back/ 追加 back/
YoudaoNote-pull-fixed .venv311/ 追加 ignore

仍有多文件变更(正常开发债)

约 10 个仓仍有 200700 个未 commit 文件(真实代码/文档),不是 node_modules。需分批 commit不会导致百万行 SCM。

维护

  • 新 clone 仓库:先跑 cursor_scm_guard_apply.sh
  • 巡检单仓cursor_scm_healthcheck.sh /path/to/repo
  • 真源 SkillCursor稳定性/SKILL.md