diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d575a74 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +# We'll let Git's auto-detection algorithm infer if a file is text. If it is, +# enforce LF line endings regardless of OS or git configurations. + +# More about LF vs. CRLF on the link below: +# https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/ + +* text=auto eol=lf + +# Isolate binary files in case the auto-detection algorithm fails and +# marks them as text files (which could brick them). +*.{png,jpg,jpeg,gif,webp,woff,woff2} binary