git rm -r --cached . git add . git commit -m 'update .gitignore'
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/175879.html原文链接:https://javaforall.net
idea gitignore不起作用有时候 gitignore 会对部分文件 文件夹失效 大概原因是由于新创建的文件已经出现在 git 本地仓库的缓存 所以 gitignore 就失效了解决办法就是清空一下 git 仓库的缓存 重新提交一次就好了 gitrm rcached gitadd gitcommit m update gitignore
git rm -r --cached . git add . git commit -m 'update .gitignore'
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/175879.html原文链接:https://javaforall.net