chore: 添加 .gitignore 并移除敏感/缓存文件
- 添加 .gitignore (Python __pycache__, .env, .idea, node_modules 等) - 从追踪中移除 backend/.env, frontend/.env (密钥文件) - 从追踪中移除 __pycache__/ 目录 (编译缓存) - 从追踪中移除 .idea/ (IDE 配置)
This commit is contained in:
40
.gitignore
vendored
Normal file
40
.gitignore
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
# ===== Python =====
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*.so
|
||||
*.egg-info/
|
||||
dist/
|
||||
build/
|
||||
*.egg
|
||||
.eggs/
|
||||
venv/
|
||||
.venv/
|
||||
env/
|
||||
|
||||
# ===== 环境变量(含密钥) =====
|
||||
.env
|
||||
*.env.local
|
||||
|
||||
# ===== IDE =====
|
||||
.idea/
|
||||
.vscode/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# ===== OS =====
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# ===== Node / Frontend =====
|
||||
node_modules/
|
||||
frontend/dist/
|
||||
frontend/src-tauri/target/
|
||||
|
||||
# ===== Docker =====
|
||||
docker-compose.override.yml
|
||||
|
||||
# ===== Misc =====
|
||||
*.log
|
||||
*.tmp
|
||||
Reference in New Issue
Block a user