The Solution after you add the .gitignore is to Remove All the Files from the Cached Index with:
git rm -r --cached .To Add again all your Files to Index:
git add .To Reset your HEAD with:
git reset HEADOnce this Procedure Accomplished you Files inserted in the .gitignore do Not will be Tracked Again :)