How To Get Git to Stop Tracking Files in .GitIgnore - Git

Overview

There is a file that was being tracked at one time by git, but now the file is on the .gitignore list. However, that file keeps showing up in git status after it's edited. This article explains how to get git to completely forget about it.

Reference

Adapted from http://stackoverflow.com/questions/1274057/how-to-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore/19095988#19095988

Solution

git rm -r --cached . 
git add .

Then:

git commit -am "Remove ignored files"