search

Home  >  Q&A  >  body text

intellij-idea - 使用IDEA重命名iml文件后 无法用git commit?

用git先clone一个项目下来,后来发现需要修改module名称,于是重命名module名称后,准备commit该文件。但是不能把iml文件重新commit,提示该文件没有变化?
对该文件进行编辑,会有提示变化,但是提交的时候 却仍旧是提交原来那个名字的iml文件。

给我你的怀抱给我你的怀抱2767 days ago987

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-05-02 09:40:19

    1. This kind of IDEA project file should not be submitted in the first place

    2. Check whether the .gitignore in the project directory includes *.iml

    reply
    0
  • 高洛峰

    高洛峰2017-05-02 09:40:19

    What is recorded in git is the previous file name. If you change the name, you should first remove以前的,再addnew it.

    reply
    0
  • PHPz

    PHPz2017-05-02 09:40:19

    The .iml file is an IDE configuration file, it has nothing to do with the project and does not need to be submitted

    reply
    0
  • Cancelreply