diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..085e897 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,19 @@ +# Keep LF in the repository AND in working copies, on every platform. +# The Docker images are built from these files on Linux: a CRLF entrypoint, +# shell script or config silently breaks the build ("bad interpreter"). +* text=auto eol=lf + +# Binary assets: never touch. +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.woff binary +*.woff2 binary +*.pdf binary + +# Windows-only helpers legitimately keep CRLF. +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf