forked from DevOps/deploy.stack
chore: 添加 .gitattributes 强制 LF 行尾
同步在 AGENTS.md 补充 CRLF 验证与修复方法。
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user