chore: 添加 .gitattributes 强制 LF 行尾

同步在 AGENTS.md 补充 CRLF 验证与修复方法。
This commit is contained in:
2026-06-19 11:43:07 +08:00
parent ade28ad50d
commit 275c252cf1
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# 强制 LF 行尾(防止 Windows 工具引入 CRLF 导致 bash 报错)
* text=auto eol=lf
# 显式标记常见脚本/配置类型
*.sh eol=lf
*.bash eol=lf
*.py eol=lf
*.md eol=lf
*.yml eol=lf
*.yaml eol=lf
*.cfg eol=lf
*.example eol=lf
Dockerfile eol=lf