.gitattributes 287 B

123456789
  1. # 跨平台统一:仓库内文本一律以 LF 存储(避免 Windows CRLF 污染 Linux 服务器,
  2. # 尤其 shell 脚本 CRLF 会导致 `bad interpreter` 等错误)。
  3. * text=auto eol=lf
  4. # 明确二进制,git 不做行尾转换。
  5. *.svg text eol=lf
  6. *.png binary
  7. *.jpg binary
  8. *.ico binary