diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..8c2820fe1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# Handle line endings automatically for files detected as text +# and leave all files detected as binary untouched. +* text=auto eol=lf + +# 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