# 设置默认行为,如果core.autocrlf没有设置,Git会自动处理行尾符 * text=auto # 明确指定文本文件使用LF *.js text eol=lf *.jsx text eol=lf *.ts text eol=lf *.tsx text eol=lf *.json text eol=lf *.css text eol=lf *.scss text eol=lf *.html text eol=lf *.md text eol=lf *.yml text eol=lf *.yaml text eol=lf # 二进制文件 *.png binary *.jpg binary *.jpeg binary *.gif binary *.ico binary *.svg binary *.woff binary *.woff2 binary *.ttf binary *.eot binary