From 64cc3ec381d53deb1b29e2553cc36e83302d4430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=82=B2=E6=96=B0?= <2635131263@qq.com> Date: Tue, 8 Sep 2026 09:23:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20.gitattributes=20?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=A1=8C=E5=B0=BE=E4=B8=BA=20LF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 仓库从 Windows 迁移至 WSL,通过 text=auto eol=lf 强制两端 检出/提交均使用 LF,消除跨平台行尾伪差异;二进制文件显式声明不转换 --- .gitattributes | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f10b4a3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +# 统一行尾为 LF:Windows / WSL 共享同一仓库时防止行尾伪差异 +* text=auto eol=lf + +# 二进制文件不做任何转换 +*.png binary +*.jpg binary +*.gif binary +*.ico binary