chore(git): 忽略并取消跟踪 .tmp/(一次 git add -A 把 554 个编译缓存扫进了版本库)
`f6feb7c` 那次提交把 `.tmp/node-compile-cache/**` 与 `.tmp/studtmp-*` 一起带进了版本库 (554 个文件,2.6MB)—— 它们只是 electron-builder / node 的临时产物, 正是 `BUILD.md` 里说的那个 `TMPDIR` 落点。 两件事: 1. 根 `.gitignore` 加 `.tmp/`(按目录整体忽略,而不是逐个文件),并写明这次的教训: 缓存进库没有意义,还会**掩盖真实的改动面**(一次 `git add -A` 就让 diff 淹没在缓存里); 2. `git rm -r --cached .tmp` 取消跟踪(文件仍在磁盘上,只是不再入库)。 以后在同一个工作区里 `git add -A` 之前,先看一眼 `git status` 里有没有 `.tmp/` 这类构建目录。
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@ -5,6 +5,11 @@
|
|||||||
# 部署机上没有 node,产物就是「一个二进制 + 一个 .db 文件」。
|
# 部署机上没有 node,产物就是「一个二进制 + 一个 .db 文件」。
|
||||||
# 因此这三样都不进版本库:装依赖与构建都能从 package-lock.json 复现。
|
# 因此这三样都不进版本库:装依赖与构建都能从 package-lock.json 复现。
|
||||||
client/electron/node_modules/
|
client/electron/node_modules/
|
||||||
|
|
||||||
|
# 构建期的临时目录(electron-builder / fpm / hvigor 的 TMPDIR 落点,见 client/electron/BUILD.md)。
|
||||||
|
# 2026-09-14 教训:这里曾被一次 `git add -A` 把 554 个 node 编译缓存文件扫进版本库 ——
|
||||||
|
# 缓存进库既没意义又会掩盖真实的改动面,所以按目录整体忽略。
|
||||||
|
.tmp/
|
||||||
client/electron/dist/
|
client/electron/dist/
|
||||||
plugins/*/node_modules/
|
plugins/*/node_modules/
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user