How to fix “.gitignore not working” issue?
![](https://i0.wp.com/pavankjadda.dev/wp-content/uploads/2023/01/image-3.png?fit=768%2C321&ssl=1)
Sometimes git does not exclude files/folders added .gitignore especially if you had committed them before. Here is how to fix it. I am ignoring node_modules from frontend project as an example ### Format1 ###node_modules/node/### Format2 ###**/frontend/node_modules/****/frontend/node/** git rm -r –cached . git add .git…