From 7008921080e749db55dd90285de03eb9552b7a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=81oskot?= Date: Thu, 9 May 2019 09:55:57 +0200 Subject: [PATCH] Add .gitattributes file (#187) Ensure .sh scripts have LF and .bat scripts have CRLF in working directory. Avoid conversion of Unix scripts to CRLF when checking out with core.autocrlf=true, on Windows, what may cause shell failures. --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..383334aa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Set default behaviour, in case users don't have core.autocrlf set. +* text=auto !eol + +# Scripts +*.bat text eol=crlf +*.sh text eol=lf