diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..63fff5c1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,32 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Shell scripts must use LF line endings (Unix style) +*.sh text eol=lf + +# Batch/PowerShell scripts can use CRLF (Windows style) +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf + +# Python scripts should use LF +*.py text eol=lf + +# Common text files +*.md text +*.txt text +*.json text +*.yaml text +*.yml text +*.toml text + +# Binary files (no line ending conversion) +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.zip binary +*.tar binary +*.gz binary +*.pdf binary