diff --git a/.gitattributes b/.gitattributes index 022b841..9063c9d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,8 @@ -# -# https://help.github.com/articles/dealing-with-line-endings/ -# -# These are explicitly windows files and should use crlf -*.bat text eol=crlf +# Documentation: https://www.git-scm.com/docs/gitattributes + +# Set default behavior to automatically normalize line endings. +* text=auto eol=lf + +# Enforce CRLF line endings in Windows batch scripts to avoid issues. +*.cmd text eol=crlf +*.bat text eol=crlf