# 默认按 LF 存,检出时 Windows 上自动转 CRLF。 * text=auto # Go 源码固定 LF:Go 的 gofmt 以 LF 为准, # CRLF 会让 gofmt 反复报「文件不是 gofmt 过的」。 *.go text eol=lf go.mod text eol=lf go.sum text eol=lf # 前端与配置:LF 即可,浏览器和 Go 工具链都不挑 *.js text eol=lf *.json text eol=lf *.css text eol=lf *.html text eol=lf *.md text eol=lf .gitignore text eol=lf .gitattributes text eol=lf # 油猴脚本必须 LF + UTF-8:Tampermonkey 对 CRLF 的处理不一致, # 且脚本里有中文/韩文,编码错了会出现乱码按钮。 userscript/*.js text eol=lf # 真实页面样本按原样存(含站点原始的换行,别规范化) internal/hd4k/testdata/*.html -text # 二进制 *.webp binary *.png binary *.jpg binary *.ico binary *.exe binary