git rm -r --cached . git add . git commit -m 'update .gitignore' 转载于:https://www.cnblogs.com/zyl-Tara/p/9415564.html