.gitignore does not ignore a folder

You are working in a repo (a GIT one) and you ignored a folder (in the -gitignore file) but still git is tracking this folder.

You can solve it with this 4 steps:

    1. Commit any changes that you need to fix/change.
    2. Run this command (which removes everything from the git index in order to refresh your git repository)

      git rm -r --cached .
    3. Then run this command (to add everything back to the repo)

      git add .
    4. Then, commit these changes using

      git commit -m ".gitignore Fixed"
    5. Finally, push it

      git push