My .gitignore
file seems to be being ignored by Git - could the .gitignore
file be corrupt? Which file format, locale or culture does Git expect?>
In my case, it's because the files already exist in the repository and I'm trying to ignore it.
These are the things I did to fix the issue:
By then, any changes I made on those files were ignored.
I think you can't ignore files that already exist on the repository.