[英]git is showing changes in files that are already added to gitignore?
I have already added log2 folder and main.js file to .gitignore as can be seen in the screenshot.我已经将 log2 文件夹和 main.js 文件添加到 .gitignore,如截图所示。
But even after executing git rm --cached .-r
I could still see git is detecting changes in main.js and files inside log2 folder.但即使在执行
git rm --cached .-r
我仍然可以看到 git 正在检测 main.js 和 log2 文件夹中的文件中的更改。
How come?怎么来的?
The usual problem with these is a gitignore coded in UTF-16.这些的常见问题是用 UTF-16 编码的 gitignore。 Save it as UTF-8.
将其另存为 UTF-8。 UTF-16 is redundant bloat at this point, larding new code just to make utf-16 not look bad would just be compounding the waste.
UTF-16 在这一点上是多余的膨胀,为了让 utf-16 看起来不坏而添加新代码只会加剧浪费。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.