Git and IntelliJ IDEA: Difference between revisions
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
=May Consider Not to Share= | =May Consider Not to Share= | ||
XML files under .idea/libraries in case they are generated from Gradle or Maven project | |||
=What Not to Share= | =What Not to Share= |
Revision as of 18:00, 10 May 2018
External
- https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems
- https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore
Internal
Overview
The contents of the .idea directory can be generally shared, with the exceptions mentioned below.
The module .iml files located throughout the source directory tree should also be shared, unless you plan to import the project locally with Maven or Gradle import functionality. In that case, the .iml files will be created.
XML files under .idea/libraries in case they are generated from Gradle or Maven project
.idea/**/workspace.xml
.idea/**/tasks.xml
User dictionaries should not be shared, because they may conflict with other users'.
.idea/**/dictionaries
In IDEA 13 or earlier, don't share datasources.xml because they contain user passwords.
Suggested .gitignore
.idea/**/dictionaries