# 设置默认行为,以防人们没有设置 core.autocrlf * text=auto # 明确声明你想要始终规范化并在检出时转换为原生行结束符的文本文件 *.vue text eol=lf *.js text eol=lf *.ts text eol=lf *.jsx text eol=lf *.tsx text eol=lf *.json text eol=lf *.css text eol=lf *.scss text eol=lf *.sass text eol=lf *.html text eol=lf *.htm text eol=lf *.xml 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 *.eot binary *.ttf binary *.woff binary *.woff2 binary *.otf binary