How to fix .gitignore file when it is not working ?
Pushlished on 05 Feb 2023
To fix your gitignore file not working first commit your changes to git then clear the cache by typing the following commands
Remember to commit everything you’ve changed before you do this!
$ git rm -rf --cached .
$ git add .
And after this make a commit. Now .gitignore file will work