添加gitinore之后,再次git add 发现无效果 如果文件已经被纳入了版本管理中,修改.gitignore不起作用。要先把本地缓存删除,再提交。 git rm -r --cached .idea