Git Ignore Committed Files

    1. Edit .gitignore to match the file you want to ignore

  1. git rm --cached /path/to/file

ref: http://stackoverflow.com/questions/7527982/applying-gitignore-to-committed-files