why .gitignore file doesn't work code example
Example 1: .gitignore file not ignoring the file
git rm -r --cached .
git add .
git commit -m “.gitignore is now working”
Example 2: .gitignore
node_modules
.DS_Store
.env
git rm -r --cached .
git add .
git commit -m “.gitignore is now working”
node_modules
.DS_Store
.env