From ac0836987f20e8f502b5e97743040050f791004b Mon Sep 17 00:00:00 2001 From: Artur Bandaryk Date: Tue, 30 Nov 2021 13:22:54 +0300 Subject: [PATCH] Introduce LF ending for commits & check out --- .gitattributes | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .gitattributes 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