Files
dsh_ai1net_server/.gitattributes
T
admin 32a0fdd23c 仓库清理:memory 移出仓库 + 行尾规范化 + 执行会话目录排除 + docs/pm 入库
用户拍板三条(2026-10-15):「1、memory 不入仓库」「2、A方案」「3、A方案」

1、`memory 不入仓库`(推翻旧口径):`.gitignore` 增 `.workbuddy/memory/`,
   并把原注释「⛔ 保留 .workbuddy/memory/ 等知识文件」标注作废;已入库的 293 个文件
   用 `git rm -r --cached` 移出索引(⛔ 不动磁盘 —— memory 留在本机照常用,
   只是不再跟仓库走)。连带删掉被新规则覆盖的冗余行 `.workbuddy/memory/.backup-*/`。

2、行尾规范化(A 方案):新增 `.gitattributes`(`* text=auto eol=lf`)。
   起因:仓里原先没有属性文件、`core.autocrlf=false`,编辑器写成 CRLF 时 git 认为
   "整文件都改了"(实测 49 个文件 24816 增 = 24816 删、内容零变化),污染 diff 且每轮刷屏。

3、执行会话目录排除(A 方案):`.gitignore` 增 `执行会话/`(内含 160 个文件,
   多为 `_gate-out-第N切片.txt` 这类过程性中间输出);同时把该入库的 `docs/pm/`
   (ai1net-plugin 产品调研 9 份:1a 需求 / 1b 竞品+4 份独立分析 / 1c 画像 / 1d 策略 / 1e 场景)入库。

验收:提交前 `git status` 未暂存剩余 0(清理前为 78 项)。
2026-10-15 20:59:57 +08:00

10 lines
630 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 全仓文本文件统一 LF(2026-10-15 用户选 A 方案:加属性文件 + 一次性规范化)
#
# 为什么要有它:仓里原本没有属性文件、`core.autocrlf=false` ⇒ 编辑器把文件写成 CRLF 时,
# git 认为"整文件都改了"(实测 49 个 `.workbuddy/memory/*.md`:24816 增 = 24816 删、
# 内容零变化),既污染 diff 又每轮刷屏,还害得人把噪音误读成"自己的遗留改动"。
# 有了它 ⇒ 检出即 LF、比较前先规范化,噪音根除。
#
# `text=auto` 让 git 自行判定文本/二进制 ⇒ 图片等二进制文件不受影响。
* text=auto eol=lf