search

Home  >  Q&A  >  body text

intellij-idea - Can't use git commit after renaming the iml file using IDEA?

Use git to clone a project first, and later found that the module name needs to be modified, so after renaming the module name, prepare to commit the file. But I cannot re-commit the iml file, and it is prompted that the file has not changed?
When editing the file, the prompt will change, but when submitting, the iml file with the original name will still be submitted.

给我你的怀抱给我你的怀抱2807 days ago1020

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