From 3ef35c527b5674a246ce47260ae74d62fb3b8635 Mon Sep 17 00:00:00 2001 From: Marci Date: Fri, 28 Aug 2026 00:36:54 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20.gitattributes=20=E8=A1=8C=E5=B0=BE?= =?UTF-8?q?=E4=B8=8E=E4=BA=8C=E8=BF=9B=E5=88=B6=E8=A7=84=E8=8C=83=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..ed9b700 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,13 @@ +# 行尾与二进制规范化:跨平台/跨贡献者行为确定 +* text=auto + +# 平台脚本固定行尾 +*.sh text eol=lf +*.bat text eol=crlf +*.cmd text eol=crlf + +# 二进制文件(不参与行尾/差异归一) +*.png binary +*.ico binary +*.nupkg binary +*.snupkg binary