删除本地缓存

git rm -r --cached .

git add .

git commit -m 'update .gitignore'