commit b19d8693c138abe01c86eb06bc1b579ab3b4c7b1 Author: skycurtain Date: Wed Sep 9 00:38:37 2026 +0800 chore: 初始化项目仓库 - 添加 .gitattributes,统一文本文件行尾为 LF - 添加 .gitignore,忽略系统文件、IDE 配置与敏感环境变量 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