Should I commit my idea folder in git and in remote version controls like Github? Is it a good practice?
Asked
Active
Viewed 2.0k times
1 Answers
43
I wouldn't commit any specific IDE configuration into the repository.
2 important reasons are:
IDE configuration almost always involves absolute paths in disk, where different users may not have the same...
You don't want to constraint all users to use the same IDE config...

Daniel Conde Marin
- 7,588
- 4
- 35
- 44
-
2What about code formatting? Code style? Copyright info? This is present in the .idea folder.. – nhaarman Aug 01 '15 at 17:44
-
@downvoter: any particular reason why the downvote? – Daniel Conde Marin Aug 01 '15 at 17:46
-
4@nhaarman: if by code formatting you mean tools like jslint etc (code style...) those have separate configs which should be persisted to the repository. – Daniel Conde Marin Aug 01 '15 at 17:48
-
16Just ignore .idea/workspace.xml and .idea/libraries – diegomercado May 17 '17 at 20:43
-
3This opinion is one of the things that make the Java development ecosystem a nightmare of yak shaving. – jpierson Jun 12 '18 at 13:42
-
1It seems like this is informed in the spirit of FOSS projects where one will have a lot of heterogeneous developer workflows. Should this advice apply to teams that all use the same tooling? – Winny Jul 07 '21 at 14:42