So my .gitignore just at some point just stops working properly, and is showing me the changes in directories I want to ignore.
- yes, I save it as ANSI
- no extra characters on the file end
- .gitinore is in a root dir of the working tree
I've read all the info about this *** solution:
git rm -r --cached . git add . git commit -m "fixed untracked files"
It works indeed perfectly on my machine, I make this three steps - commit them - and I can make changes on my machine in ignored directories.
The problem is, when I pull this commit to the server, then it deletes all the ignored stuff! Not that it just ignores it, it removes files and directories from the server so the project becomes useless...
All over the internet this solution seems to be the only one for broken .gitignore, but it's not as it deletes the files and directories that should not be deleted. This is silly, such a stupid bug should be removed long time ago...
edit: it happens on different paths, or files, when manually or by software something is added to the .gitignore - putting the gitignore paths here that broke is pointless. <- this is the bug I mentioned, not that I run some commands...