Question: git .gitignore is not working?
Answer: gitignore file is ignored by git and it does not work 6. Some times, even if you haven't added some files to the repository, git seems to monitor them even after you add them to the . gitignore file. This is a caching issue that can occur and to fix it, you need to clear your cache.