git ignore not working 1

git ignore not working

git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";

Here is what the above code is Doing:
1. git rm -r –cached .
– Remove everything from the index.
2. git add .
– Re-add everything
3. git commit -m “Untracked files issue resolved to fix .gitignore”
– Commit.

Similar Posts