修改git对文件的约束

This commit is contained in:
杰仔 2026-06-14 17:11:56 +08:00
parent 2b49f41d13
commit 1bf325ca8c
2 changed files with 11 additions and 11 deletions

20
.gitattributes vendored
View File

@ -1,16 +1,16 @@
# 自动检测文本文件并统一换行符 # 自动检测文本文件并统一换行符
* text=auto eol=crlf # * text=auto eol=crlf
# 源代码文件 - 强制 CRLF # 源代码文件 - 强制 CRLF
*.cpp text eol=crlf # *.cpp text eol=crlf
*.h text eol=crlf # *.h text eol=crlf
*.hpp text eol=crlf # *.hpp text eol=crlf
*.c text eol=crlf # *.c text eol=crlf
*.ui text eol=crlf # *.ui text eol=crlf
*.qrc text eol=crlf # *.qrc text eol=crlf
*.pro text eol=crlf # *.pro text eol=crlf
*.pri text eol=crlf # *.pri text eol=crlf
*.qss text eol=crlf # *.qss text eol=crlf
# 配置文件 # 配置文件
*.json text eol=crlf *.json text eol=crlf

2
.gitignore vendored
View File

@ -45,5 +45,5 @@ CLAUDE.md
*.pdf *.pdf
**/Publish **/Publish
**/TestData **/TestData*
*.log *.log