Already tried doing git rm --cached dir/file
and it did not work.
It only works with the VSCode interface(the source control extension).
I'll add a file to .gitignore
git add .
git commit -m "trying to make .gitignore work"
git push
And no success...
I already visited all the other duplicates of this one on Stackoverflow.
I am using WSL (Windows Subsystem for Linux) on VScode.
The file remains on my git repo even if its marked on gitignore...
The file name on VScode interface shows up a little gray indicating that .gitignore
worked...