From cc66d5dd7497ccd6d4394741e7b2ef10c68e5d30 Mon Sep 17 00:00:00 2001 From: cheney Date: Mon, 24 Aug 2026 14:38:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20.gitattributes?= =?UTF-8?q?=EF=BC=8C=E7=BB=9F=E4=B8=80=E6=96=87=E6=9C=AC=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=BA=20LF=E3=80=81bat=20=E4=B8=BA=20CRLF=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20Windows/WSL=20=E7=8A=B6=E6=80=81=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..807766c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,20 @@ +# 默认:自动识别文本文件,统一以 LF 入库,检出时也保持 LF(Windows/WSL 行为一致) +* text=auto eol=lf + +# Windows 批处理脚本必须使用 CRLF +*.bat text eol=crlf +*.cmd text eol=crlf + +# 二进制文件,禁止任何转换 +*.exe binary +*.dll binary +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.zip binary +*.xlsx binary +*.xls binary +*.db binary +*.duckdb binary