# Auto-detect text files and normalize to LF in the repo * text=auto # Explicit text rules *.md text *.txt text *.json text *.yml text *.yaml text *.toml text *.c text *.cpp text *.h text *.hpp text *.rs text *.py text *.go text *.js text *.ts text *.css text *.html text *.sh text eol=lf # scripts on Unix must be LF *.bash text eol=lf # Windows-native scripts that should remain CRLF in working trees *.bat text eol=crlf *.cmd text eol=crlf *.ps1 text eol=crlf # Binary (never touch line endings) *.png binary *.jpg binary *.jpeg binary *.gif binary *.pdf binary *.zip binary *.exe binary *.dll binary *.glb binary