diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b872d64 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,30 @@ +# Normalize line endings on commit; check out LF on every OS. +* text=auto eol=lf + +# Binary files — never touch line endings. +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.webp binary +*.pdf binary +*.zip binary +*.gz binary +*.tar binary +*.woff binary +*.woff2 binary +*.ttf binary +*.otf binary +*.eot binary +*.mp4 binary +*.mov binary +*.wasm binary + +# Shell scripts must stay LF regardless. +*.sh text eol=lf + +# Windows batch / PowerShell must stay CRLF. +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf