gitignore 不起作用的解决办法
2020-11-10 本文已影响0人
A徐亮波KingA
gitignore 不是一开始就有的话~会造成gitignore无法生效的错觉 ~提示是缓存影响的
git rm -r --cached .
git add .
git commit -m 'update .gitignore'
然后重新提交就可以
gitignore 不是一开始就有的话~会造成gitignore无法生效的错觉 ~提示是缓存影响的
git rm -r --cached .
git add .
git commit -m 'update .gitignore'
然后重新提交就可以