上一提交(fc9dd4c)有两处不成立,这里如实纠正: 1. 规则没加上。判断写成了 `"/node_modules/" not in 全文`,而 `/web/node_modules/` 里就含这个子串 ⇒ 误判为"已存在",跳过了追加。 改成对整行集合判断。 2. 产物没撤出。`git rm --cached node_modules` 之后又跑了 `git add -A`, 而此时根级 node_modules 还没被忽略 ⇒ 文件被原样加回索引,净效果为零。 正确顺序是:先让忽略规则生效,再撤出索引;否则 add -A 会把它搬回来。 (8 个 .pyc 当时确实清掉了,因为 __pycache__/ 规则本来就在。) 3. 上一提交正文里"验证:git ls-files 里不再有 …"当时是不成立的。 验证(本次真跑):git check-ignore 命中 /node_modules/; git ls-files 里 node_modules / __pycache__ / .pyc 计数为 0。
This commit is contained in:
-1
@@ -1 +0,0 @@
|
||||
{"version":"5.0.3","results":[[":web/src/WeKnoraMonitor.test.tsx",{"duration":113.22230200000001,"failed":false}]]}
|
||||
Reference in New Issue
Block a user