From ad4854fdb302324a7c0a8c9aa823e3c0169e580d Mon Sep 17 00:00:00 2001 From: LittleGuo Date: Sun, 27 Sep 2026 20:28:29 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=9B=BA=E5=AE=9A=20.ai-memory=20?= =?UTF-8?q?=E7=94=A8=20LF=20=E6=8D=A2=E8=A1=8C=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit core.autocrlf=true 会让 clone 时把记忆文件转成 CRLF,导致「记忆目录 <-> 仓库」 逐字节比对始终有噪音。加 .gitattributes 指定 .ai-memory/*.md 使用 eol=lf。 --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a51aa16 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +# AI 记忆备份固定使用 LF: +# 便于「记忆目录 <-> 仓库」逐字节比对,也避免 core.autocrlf 在 clone 时转成 CRLF +.ai-memory/*.md text eol=lf