# Shell 脚本必须保持 LF:CRLF 会让 Linux 上的 bash 直接报语法错误 # (典型报错:syntax error near unexpected token `$'do\r'') *.sh text eol=lf # Dockerfile 同理(CRLF 会导致某些解析器把续行符后的 \r 当成参数) Dockerfile text eol=lf Dockerfile.* text eol=lf # compose / nginx 配置也统一 LF *.yml text eol=lf *.conf text eol=lf