From b19d8693c138abe01c86eb06bc1b579ab3b4c7b1 Mon Sep 17 00:00:00 2001 From: skycurtain Date: Wed, 9 Sep 2026 00:38:37 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 .gitattributes,统一文本文件行尾为 LF - 添加 .gitignore,忽略系统文件、IDE 配置与敏感环境变量 --- .gitattributes | 15 +++++++++++++++ .gitignore | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..cf0ade6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,15 @@ +# 将所有文件的行尾统一为 LF +* text=auto eol=lf + +# Windows 批处理脚本保持 CRLF +*.bat text eol=crlf +*.cmd text eol=crlf + +# 常见二进制文件不做行尾转换 +*.png binary +*.jpg binary +*.gif binary +*.ico binary +*.pdf binary +*.zip binary +*.gz binary diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a5cb6d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# macOS +.DS_Store + +# 编辑器 / IDE +.idea/ +.vscode/ +*.swp + +# 日志 +*.log + +# 环境变量 / 密钥(不要提交到仓库) +.env +.env.* +!.env.example