From 5ad8a657f49fbbae296713d20a85fe5aadbf66d5 Mon Sep 17 00:00:00 2001 From: Willem Jiang Date: Sat, 28 Feb 2026 10:32:56 +0800 Subject: [PATCH] fix(git):add .gitattributes to avoid 'bash\r' issue (#924) --- .gitattributes | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..84e86b2 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,43 @@ +# Normalize line endings to LF for all text files +* text=auto eol=lf + +# Shell scripts and makefiles must always use LF +*.sh text eol=lf +Makefile text eol=lf +**/Makefile text eol=lf + +# Common config/source files +*.yml text eol=lf +*.yaml text eol=lf +*.toml text eol=lf +*.json text eol=lf +*.md text eol=lf +*.py text eol=lf +*.ts text eol=lf +*.tsx text eol=lf +*.js text eol=lf +*.jsx text eol=lf +*.css text eol=lf +*.scss text eol=lf +*.html text eol=lf +*.env text eol=lf + +# Windows scripts +*.bat text eol=crlf +*.cmd text eol=crlf + +# Binary assets +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.webp binary +*.ico binary +*.pdf binary +*.zip binary +*.tar binary +*.gz binary +*.mp4 binary +*.mov binary +*.woff binary +*.woff2 binary