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.
This kind of IDEA project file should not be submitted in the first place
Check whether the .gitignore in the project directory includes *.iml
What is recorded in git is the previous file name. If you change the name, you should first
remove
以前的,再add
new it.The .iml file is an IDE configuration file, it has nothing to do with the project and does not need to be submitted