Skip to content

Add gitattributes#18

Merged
Sunrisepeak merged 3 commits intomainfrom
add-gitattributes
Mar 7, 2026
Merged

Add gitattributes#18
Sunrisepeak merged 3 commits intomainfrom
add-gitattributes

Conversation

@FrozenLemonTee
Copy link
Member

该配置用于统一 Git 在不同平台上的文件处理行为,主要包括:

  • 规范文本文件的换行符为 LF
  • 启用 Git 的自动文本文件检测
  • 为常见源码、脚本和文档文件设置文本属性
  • 为常见二进制文件设置 binary 属性,避免错误的换行转换

该配置与 .editorconfig.clang-format 共同组成完整的代码风格基础设施:

  • .editorconfig:统一编辑器基础行为
  • .clang-format:统一 C/C++ 代码格式
  • .gitattributes:统一 Git 文件处理策略

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants