# 自动检测文本文件，并规范化换行符为 LF（提交到仓库时统一为 LF）
* text=auto

# 明确指定以下文件使用 LF（适用于大多数代码文本文件）
*.js    text eol=lf
*.ts    text eol=lf
*.tsx   text eol=lf
*.json  text eol=lf
*.css   text eol=lf
*.scss  text eol=lf
*.html  text eol=lf
*.md    text eol=lf
*.yml   text eol=lf
*.yaml  text eol=lf
*.sh    text eol=lf   # Shell 脚本必须为 LF
*.py    text eol=lf

# Windows 批处理文件必须使用 CRLF
*.bat   text eol=crlf
*.cmd   text eol=crlf

# 二进制文件（防止 Git 错误地修改它们）
*.png   binary
*.jpg   binary
*.jpeg  binary
*.gif   binary
*.ico   binary
*.zip   binary
*.tar.gz binary
*.exe   binary
*.dmg   binary
*.AppImage binary