From 44546d1a963b0c3cce569037aab013ca159c5682 Mon Sep 17 00:00:00 2001 From: dekun Date: Thu, 9 Jul 2026 09:34:21 +0800 Subject: [PATCH] chore: enforce LF line endings for docs/ Prevents spurious CRLF diffs when editing documentation on Windows. Co-authored-by: Cursor --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitattributes b/.gitattributes index 14871aa..fefbae4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,7 @@ # Shell 脚本在仓库内统一 LF,避免 Linux 上 bash: pipefail: invalid option name(CRLF) *.sh text eol=lf deploy/** text eol=lf +# 文档统一 LF,避免 Windows 编辑后产生 CRLF 脏 diff +docs/** text eol=lf # .env 模板统一 LF,避免 Linux PM2 source 报 $'\r': command not found **/.env.example text eol=lf