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

相关文章:

  • 2021-05-12
  • 2021-08-10
  • 2022-02-15
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-11-18
猜你喜欢
  • 2021-05-26
  • 2021-12-24
  • 2021-06-27
  • 2021-05-13
相关资源
相似解决方案