IntelliJ IDEA 的 .idea 目录加入.gitignore无效的解决方法
2023-09-14 08:56:58 时间
[转载]
无效的原因是:对应的目录或者文件已经被git跟踪,此时再加入.gitignore后就无效了,
解决办法:
先执行
[文件夹] git rm -r --cached .idea
[文件] git rm --cached demo-project.iml
再重新加入.gitignore文件
解决方法来源:http://stackoverflow.com/questions/9550437/how-to-make-git-ignore-idea-files-created-by-rubymine
相关文章
- Intellij IDEA开发第一个android应用教程
- Idea使用记录--每次修改JS文件都需要重启Idea才能生效解决方法
- web项目中idea控制台中文乱码的解决方法
- IntelliJ IDEA悬停鼠标显示方法详细信息
- 【调试】Idea如何远程debug之tomcat war包启动
- IDEA使用--字体、编码和基本设置
- IntelliJ Idea设置护眼浅绿色背景方法
- IDEA-各模块间引用出现问题的解决方法
- idea 一些插件配置
- intellij idea:配置修改pom.xml后自动加载依赖(intellij idea 2021.2)
- IDEA 运行junit单元测试方法
- IntelliJ IDEA出现Search for无法进入编辑状态
- idea配置Run Dashboard的方法(亲测有效)
- IDEA常用快捷键整理20191105
- idea pycharm设置鼠标滚轮改变字体大小的方法
- IntelliJ IDEA创建spring boot项目的方法
- idea按照行号快速定位行快捷键以及设置方法
- IDEA-Maven的Dependencies中出现红色波浪线
- java.lang.OutOfMemoryError: PermGen space基于idea,MyEclipse或tomcat的详细解决方法以及详解JVM配置参数
- 如何在Idea中查看某个方法被谁调用、当前方法调用了哪些方法
- Spring MVC 学习总结(十)——Spring+Spring MVC+MyBatis框架集成(IntelliJ IDEA SSM集成)
- Intellij Idea中Backspace无法使用,Ctrl+c/Ctrl+d等等快捷键无法使用的问题的解决
- Java-idea-安装配置优化等
- IntelliJ IDEA 中自动生成 serialVersionUID 的方法
- 【项目实战】IDEA中的代码模板,IDEA如何导入签名,设置类头注释和方法注释
- 【开发工具】IntelliJ IDEA中快速抽取方法(代码优化)
- 【开发工具】IDEA生成序列号serialVersionUID快捷键
- intellij idea 的全局搜索快捷键方法
- idea 快捷键代码行标记并快捷跳到标记行