# 统一换行符:文本文件使用 LF,避免 Windows 下 CRLF 导致 diff 噪声 * text=auto eol=lf # 显式声明常见源码文件的换行 *.java text eol=lf *.vue text eol=lf *.js text eol=lf *.ts text eol=lf *.json text eol=lf *.yml text eol=lf *.yaml text eol=lf *.xml text eol=lf *.md text eol=lf *.css text eol=lf *.html text eol=lf *.sh text eol=lf *.sh.example text eol=lf *.bat text eol=crlf *.cmd text eol=crlf *.bat.example text eol=crlf *.cmd.example text eol=crlf *.py text eol=lf # Windows 专用脚本保持 CRLF *.ps1 text eol=crlf *.ps1.example text eol=crlf # 二进制文件,不做换行转换 *.png binary *.jpg binary *.jpeg binary *.gif binary *.ico binary *.pdf binary *.zip binary *.jar binary *.class binary