chore: 初始化项目仓库
- 添加 .gitattributes,统一文本文件行尾为 LF - 添加 .gitignore,忽略系统文件、IDE 配置与敏感环境变量
This commit is contained in:
@@ -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
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
# macOS
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# 编辑器 / IDE
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
*.swp
|
||||||
|
|
||||||
|
# 日志
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# 环境变量 / 密钥(不要提交到仓库)
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
Reference in New Issue
Block a user