From 46b0858efbac6dacb625d921923398ab154a2d5b Mon Sep 17 00:00:00 2001 From: inliver233 Date: Sat, 19 Sep 2026 22:08:18 +0800 Subject: [PATCH] Add .gitattributes to normalize line endings across platforms --- .gitattributes | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5244da9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,21 @@ +# Normalize line endings so a Windows checkout does not rewrite committed files. +# Scripts stay LF (they are consumed by python/node and by shell on POSIX hosts). +* text=auto eol=lf + +*.py text eol=lf +*.js text eol=lf +*.sh text eol=lf +*.md text eol=lf +*.java text eol=lf +*.yml text eol=lf +*.yaml text eol=lf + +# PowerShell is the one thing that is happier with CRLF on Windows. +*.ps1 text eol=crlf + +# Never normalize binary-ish artifacts. +*.jar binary +*.png binary +*.apk binary +*.dex binary +*.so binary