Make Git ignore files that already exist in the repository
09/2011 // Category: Git Version Control
Adding files to .gitignore that are already tracked does not work. In stead, this command can be used:
git update-index --assume-unchanged [filename(s)]