From 6b5d9adeea1bed6e098e69a7a4b3ece5fda361a8 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Thu, 25 Jul 2024 21:32:35 +0200 Subject: [PATCH] Create .gitattributes --- .gitattributes | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..6510bf11f7d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +# adapted out of https://github.com/h5bp/html5-boilerplate/blob/main/.gitattributes +# Automatically normalize line endings for all text-based files +# https://git-scm.com/docs/gitattributes#_end_of_line_conversion + +* text=auto + +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +# For the following file types, normalize line endings to LF on +# checkin and prevent conversion to CRLF when they are checked out +# (this is required in order to prevent newline related issues like, +# for example, after the build script is run) + +.* text eol=lf +*.css text eol=lf +*.html text eol=lf +*.js text eol=lf +*.json text eol=lf +*.md text eol=lf +*.mjs text eol=lf +*.sh text eol=lf +*.txt text eol=lf +*.xml text eol=lf +*.yml text eol=lf