chore: 添加 .gitattributes,统一文本文件为 LF、bat 为 CRLF,修复 Windows/WSL 状态不一致
This commit is contained in:
parent
06b814589f
commit
cc66d5dd74
20
.gitattributes
vendored
Normal file
20
.gitattributes
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# 默认:自动识别文本文件,统一以 LF 入库,检出时也保持 LF(Windows/WSL 行为一致)
|
||||||
|
* text=auto eol=lf
|
||||||
|
|
||||||
|
# Windows 批处理脚本必须使用 CRLF
|
||||||
|
*.bat text eol=crlf
|
||||||
|
*.cmd text eol=crlf
|
||||||
|
|
||||||
|
# 二进制文件,禁止任何转换
|
||||||
|
*.exe binary
|
||||||
|
*.dll binary
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
*.jpeg binary
|
||||||
|
*.gif binary
|
||||||
|
*.ico binary
|
||||||
|
*.zip binary
|
||||||
|
*.xlsx binary
|
||||||
|
*.xls binary
|
||||||
|
*.db binary
|
||||||
|
*.duckdb binary
|
||||||
Loading…
Reference in New Issue
Block a user