1.5 KiB
1.5 KiB
全仓库 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 个仓仍有 200~700 个未 commit 文件(真实代码/文档),不是 node_modules。需分批 commit,不会导致百万行 SCM。
维护
- 新 clone 仓库:先跑
cursor_scm_guard_apply.sh - 巡检单仓:
cursor_scm_healthcheck.sh /path/to/repo - 真源 Skill:
Cursor稳定性/SKILL.md