This commit is contained in:
abing
2025-04-02 11:17:27 +08:00
parent eb7a7d6d98
commit a22efae39e
8 changed files with 14016 additions and 6 deletions

16
.gitattributes vendored Normal file
View File

@@ -0,0 +1,16 @@
# Windows 用户配置:
# 由于 Windows 默认使用 CRLF而 macOS 默认使用 LF因此建议 Windows 用户使用 core.autocrlf true这样 Git 会在提交时将 CRLF 转换为 LF在检出代码时将 LF 转换为 CRLF。
# git config --global core.autocrlf true
# macOS 用户配置:
# macOS和 Linux默认使用 LF因此建议 macOS 用户使用 core.autocrlf input这样 Git 只会在提交时将 CRLF 转换为 LF不会改变 LF 文件的行结束符。
# git config --global core.autocrlf input
# 该文件可以避免不同操作系统之间引发行结束符的冲突
# 强制所有文本文件使用 LF 作为行结束符。确保项目一致性
* text=auto eol=lf
# 对于 Windows 特有的二进制文件(如 .exe, .dll 等),保持原始行结束符
*.exe binary
*.dll binary