git rm -r --cached . git add . git commit -m ‘update .gitignore‘
修改.gitignore不生效问题
原文:https://www.cnblogs.com/yanglei-xyz/p/gitignore.html