From cd78ee3ad0fdc762ea8d9f7d5cca0b45668364a4 Mon Sep 17 00:00:00 2001 From: OMGeeky <> Date: Tue, 18 Feb 2025 22:47:28 +0100 Subject: [PATCH] Add .gitattributes to normalize line endings and enforce LF for bash scripts (cherry picked from commit a71e8fe0a40bae529e818d559eccfd2897509255) --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1b58bd7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Set default behavior to automatically normalize line endings. +* text=auto + +# Force bash scripts to always use LF line endings so that if a repo is accessed +# in Unix via a file share from Windows, the scripts will work. +*.sh text eol=lf \ No newline at end of file