# 统一换行符,避免跨平台踩坑 # shell 脚本必须 LF:Windows 上若被 checkout 成 CRLF,容器/Linux 里执行会报 # "$'\r': command not found",或被 sed/grep 当成带 \r 的内容 *.sh text eol=lf # Windows 侧脚本保持 CRLF *.ps1 text eol=crlf *.bat text eol=crlf # 二进制/生成物不参与换行转换 *.exe binary *.dll binary *.png binary *.jpg binary *.ico binary