git is showing changes in files that are already added to gitignore?

Viewed 100

I have already added log2 folder and main.js file to .gitignore as can be seen in the screenshot.

But even after executing git rm --cached .-r I could still see git is detecting changes in main.js and files inside log2 folder.

How come?

enter image description here

1 Answers

The usual problem with these is a gitignore coded in UTF-16. Save it as 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.

Related