Repo hygiene: fix .gitignore, normalize line endings, correct repo paths

- Replace misspelled/ineffective ignore file with a real .gitignore:
  deploy/ (contains SSH private key), *.pem, .env*, and Python/Django/
  Wagtail runtime artifacts are now excluded from version control
- Add .gitattributes (* text=auto eol=lf) to stop CRLF/LF churn that
  made all 26 tracked files show spurious full-file diffs
- Correct repo root path /mnt/d/OPC/skelet -> /mnt/d/opc_project/skelet
  in AGENTS.md, 00-ai-start-here, 03-tech-stack, 90-harness-reference,
  current-state (progress.md history left as-is, append-only)
- Update current-state.md snapshot and append maintenance record to
  progress.md per harness rules

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
ila
2026-07-06 15:56:00 +08:00
co-authored by Claude Fable 5
parent 8231c6a976
commit d98bfb7531
8 changed files with 51 additions and 6 deletions
+13
View File
@@ -52,3 +52,16 @@
- 决策:第一版英文单语言站点;首批只做 SaaS 和内容站/CMS 两个场景;评分维度以 `docs/04-architecture.md` 为唯一权威;M3 闸门不过不扩内容。
- 下一步:T-001 初始化 Wagtail 项目骨架。
## 2026-07-06 仓库卫生维护(.gitignore 修复 + 行尾统一 + 路径纠错)
- 状态:DONE
- 变更:
- 修复忽略文件:原文件名拼写为 `.gittignore`,git 不识别,`deploy/`(含 SSH 私钥 `tokyo.pem`)处于可被提交状态;现为标准 `.gitignore`,并补齐凭证类(`*.pem`、`.env*`)和 Python / Django / Wagtail 运行产物(`__pycache__/`、`.venv/`、`db.sqlite3*`、`media/`、`staticfiles/`)忽略项。
- 新增 `.gitattributes`(`* text=auto eol=lf`):此前仓库以 CRLF 提交、工作区为 LF,导致 26 个文件出现全量假差异;统一按 LF 提交,本轮一次性归一化,之后 diff 只反映真实内容变化。
- 路径纠错:`AGENTS.md`、`docs/00-ai-start-here.md`、`docs/03-tech-stack.md`、`docs/90-harness-reference.md`、`docs/current-state.md` 中仓库根目录由 `/mnt/d/OPC/skelet` 修正为实际路径 `/mnt/d/opc_project/skelet`(本文历史记录按只追加规则不改写)。
- `docs/current-state.md`:目录要点补登 `business/`、`deploy/`(不入库)、`.gitignore` / `.gitattributes`。
- 验证:`git check-ignore -v deploy/tokyo.pem` 确认私钥被忽略;`git diff --ignore-cr-at-eol --stat` 确认既有 26 文件差异全部为行尾、无内容变化;`grep -rn "OPC/skelet"` 确认除本文历史记录外无残留旧路径。
- 阻塞:无。
- 决策:`deploy/` 整目录不入库,部署凭证只保留在本机;行尾规范定为 LF(与 WSL2/Linux 标准开发环境一致)。
- 下一步:T-001 初始化 Wagtail 项目骨架。