从git中删除 .idea 目录
-
将.idea目录加入ignore清单:
$ echo '.idea' >> .gitignore
-
从git中删除idea:
$ git rm —cached -r .idea
-
将.gitignore文件加入git:
$ git add .gitignore
-
Commit gitignore文件,将.idea从源代码仓库中删除:
$ git commit -m '(gitignore commit and remove .idea)'
本文来自博客园,作者:aspirant,转载请注明原文链接:https://www.cnblogs.com/aspirant/p/10451437.html