git ignore is not working code example
Example 1: updated gitignore not working
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
Example 2: gitignore is not working
git rm -rf --cached .
git add .
Example 3: .gitignore file not ignoring the file
git rm -r --cached .
git add .
git commit -m “.gitignore is now working”