Files
his/.gitattributes
2025-04-02 11:17:27 +08:00

16 lines
829 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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