[英]After upgrade to Angular v13, Additional cache files modified on each change
I have recently upgraded a v12 project to v13, and every time I make a change to a file I am now presented with additional files every time I make a change to anything.我最近将一个 v12 项目升级到 v13,每次我对文件进行更改时,我现在每次对任何内容进行更改时都会看到额外的文件。
Does anyone know why this is happening?有谁知道为什么会这样? These are cache files.
这些是缓存文件。
In the example below, I made a simple change to a CSS file and am presented with the following modifications to be checked in to source control.在下面的示例中,我对 CSS 文件进行了简单更改,并显示了以下要签入源代码管理的修改。
I solved this by by adding /.angular/cache
to.gitignore, but this is only part of it.我通过将
/.angular/cache
添加到.gitignore 解决了这个问题,但这只是其中的一部分。 The files were still showing up as tracked.文件仍显示为已跟踪。
I had to untrack these files, and I did this top-to-bottom with:我不得不取消跟踪这些文件,我从上到下做了这个:
git rm -r --cached .
git add .
This seems to have resolved it.这似乎已经解决了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.