Git Ignore not Ignoring

Throughout oxwebs blog you will see a mixture of short and small articles, but this is all shared knowledge that someone will find it useful. I use GIT a lot but never had any problem with .gitignore file, one day I found out that actually the files that were put in .gitignore was not really ignoring these files. So if you have the same problem just do the following: 

git rm -r --cached . //this will clear the cache
git add .
git commit –m "Fixing .gitignore"

And that should sort out this problem.

About the Author

Shemsedin Callaki has many years of development experience on many technologies. Drupal is a CMS that he loves. He has also contributed work to Drupal community. His favourite PHP framework is YII.