已经加入了gitignore但任然modified

因为那些文件已经在gitignore之前就加入到了git的缓存系统index.
Git rm -rf --cached FILE_NAME

原文地址:https://www.cnblogs.com/qinqiu/p/9048944.html