Should I add /idea/modules.xml to gitignore ? What is it written about?

 <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ProjectModuleManager"> <modules> <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" /> <module fileurl="file://$PROJECT_DIR$/callre.iml" filepath="$PROJECT_DIR$/callreport.iml" /> </modules> </component> </project> 

This is written, and why it is necessary to add the entire folder, how then the studio will understand it, or I don’t understand something

Update

I do a push at home and at work; in this file, these lines change each time:

  <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" /> <module fileurl="file://$PROJECT_DIR$/callre.iml" filepath="$PROJECT_DIR$/callreport.iml" /> 

one or the other

  • 3
    Well open and see what's there. In general, the entire idea folder should be added to the ignore list, it does not apply to the project itself. - Opalosolo
  • you can add files if there are no absolute paths in them, I think - Vladyslav Matviienko

1 answer 1

If you do not have strict requirements for the development environment, then in version control, place only those files that are directly related to the application. And all IDE-dependent directories are ignored.