git
rm
-r --cached .
git add .
git commit -m
‘update .gitignore‘
gitignore
原文:http://www.cnblogs.com/KruceCoder/p/7598039.html