From e14c9775e7adf7839b126e5f02a07a17cf037865 Mon Sep 17 00:00:00 2001 From: linli2004 Date: Tue, 16 Jun 2026 14:40:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=20.gitignore=EF=BC=8C?= =?UTF-8?q?=E5=89=94=E9=99=A4=E6=9E=84=E5=BB=BA=E4=BA=A7=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重新分类整理(Python / Dart/Flutter / IDE 等分区) - 新增 .dart_tool/、__pycache__/、*.db、build/ 等忽略模式 - 阻止构建产物(.dart_tool、__pycache__、.pytest_cache、.db 等)进版本控制 --- .gitignore | 66 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 53 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index be0fe38..988798d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,42 +1,82 @@ -# Python +# ─── Python ─────────────────────────────────────────────── __pycache__/ *.py[cod] *$py.class *.so .Python +*.egg-info/ +*.egg +.venv*/ +venv/ +ENV/ build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ +lib/ lib64/ parts/ sdist/ var/ wheels/ -*.egg-info/ +*.whl .installed.cfg -*.egg -.venv/ -venv/ -ENV/ +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.coverage +coverage/ +htmlcov/ -# Data -data/ +# ─── Dart / Flutter ────────────────────────────────────── +.dart_tool/ +.pub/ +.builders/ +build/ +*.freezed.dart +*.g.dart +.pub-preload-cache/ +*.js_ +*.js.deps +*.js.map + +# ─── Data / Environment ────────────────────────────────── .env +.env.local +.env.production +*.db +data/ +*.log +logs/ -# IDE +# ─── IDE / Editor ──────────────────────────────────────── .idea/ .vscode/ *.swp *.swo +*~ +.vs/ +*.suo +*.user +*.userosscache +*.sln.docstates -# OS +# ─── OS ────────────────────────────────────────────────── .DS_Store Thumbs.db +Desktop.ini +ehthumbs.db -# Terraform +# ─── Terraform ─────────────────────────────────────────── .terraform/ -terraform/terraform.tfstate -terraform/terraform.tfstate.backup +*.tfstate +*.tfstate.backup +*.tfvars + +# ─── Build Artifacts ───────────────────────────────────── +*.tar.gz +*.zip +*.dmg +*.pkg