From c56f95291db98afc57d8539f7b8b03734a9c50af Mon Sep 17 00:00:00 2001 From: thbeu <115483027+thbeu@users.noreply.github.com> Date: Thu, 1 Dec 2022 01:15:48 +0100 Subject: [PATCH] feat: add .gitattributes file (#407) --- .gitattributes | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..90f21f12 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +# Set default behavior to automatically normalize line endings. +* text=auto + +# Force batch scripts to always use CRLF line endings so that if a repo is accessed +# in Windows via a file share from Linux, the scripts will work. +*.{cmd,[cC][mM][dD]} text eol=crlf +*.{bat,[bB][aA][tT]} text eol=crlf +*.{ps1,[pP][sS]1} text eol=crlf + +# 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