chore: 添加 .gitignore,排除数据库与构建产物
instance/ 里是 SQLite 生产库及其备份(已 36MB+),此前处于未跟踪状态, 一次 git add -A 就会把 70MB+ 的数据库提交进仓库。 同时排除 build/dist/web_dist/__pycache__ 等可由源码重新生成的产物。
This commit is contained in:
36
.gitignore
vendored
Normal file
36
.gitignore
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
# =========================================================
|
||||
# 运行时数据 —— 绝不入库
|
||||
# instance/ 里是 SQLite 生产库(已 36MB+)及其备份,
|
||||
# 一旦提交会让仓库体积失控,且会覆盖服务器上的真实数据。
|
||||
# =========================================================
|
||||
instance/
|
||||
*.db
|
||||
*.db-journal
|
||||
*.db-wal
|
||||
*.db-shm
|
||||
*.sqlite3
|
||||
|
||||
# =========================================================
|
||||
# 构建产物(可由源码重新生成,不入库)
|
||||
# =========================================================
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
build/
|
||||
build_new/
|
||||
dist/
|
||||
dist_new/
|
||||
web_dist/
|
||||
*.exe
|
||||
|
||||
# =========================================================
|
||||
# 临时与备份
|
||||
# =========================================================
|
||||
*.bak
|
||||
*.bak-*
|
||||
*.log
|
||||
|
||||
# =========================================================
|
||||
# 编辑器
|
||||
# =========================================================
|
||||
.vscode/
|
||||
Reference in New Issue
Block a user