从git中删除 .idea 目录

方法/步骤

  1.  

    将.idea目录加入ignore清单:

    $ echo '.idea' >> .gitignore

  2.  

    从git中删除idea:

    $ git rm —cached -r .idea

  3.  

    将.gitignore文件加入git:

    $ git add .gitignore

  4.  

    Commit gitignore文件,将.idea从源代码仓库中删除:

    $ git commit -m '(gitignore commit and remove .idea)'

  5.  

    Push到服务器:

     $ git push origin master

软件基本信息

原文地址:https://www.cnblogs.com/wicub/p/5157808.html