gitignore无效最简单解决办法

git rm --cached 文件或者文件夹

git commit 提交

git push 提交

原文地址:https://www.cnblogs.com/jh1994/p/4919082.html