43

Possible Duplicate:
Intellij Idea 9, what folders to check into (or not check into) source control?

The question is general, although specifically I'm interested right now in PyCharm, not Java development.

Community
  • 1
  • 1
ripper234
  • 222,824
  • 274
  • 634
  • 905
  • exact duplicate of [Intellij Idea 9, what folders to check into (or not check into) source control?](http://stackoverflow.com/questions/3041154/intellij-idea-9-what-folders-to-check-into-or-not-check-into-source-control) – ax. Mar 19 '11 at 15:05
  • @ax - not it's not, the file format change considerably between Intellij 9 and 10. – ripper234 Mar 19 '11 at 16:51
  • you didn't say anything about Intellij 9 or 10 ... – ax. Mar 19 '11 at 16:56
  • It's a duplicate, linked article has a link to FAQ page that mentions both directory and file based formats. – CrazyCoder Mar 19 '11 at 18:02

2 Answers2

28

Yes, because all the developers that use IDEA should be using the same project files. If other developers use other IDEs, they should add their project files to Source Control also. After all, we "need" the project files to build the project, don't we?

Gorka Siverio
  • 297
  • 2
  • 2
  • 14
    It's true that JetBrains' documentation recommends adding IDEA specific project files to be added to source control (see here: http://www.jetbrains.com/idea/webhelp/project.html. At the same time, if you're working on a public project, you would probably not want to force consumers to use any specific IDE. The essential information about your project's structure really should be stored in a free to use tool, like Maven for example. – urig Oct 07 '13 at 08:39
27

No, because it's not guaranteed that other developers also use Intellij idea. Source control has to contain only necessary files to build project.

Alexander Oleynikov
  • 19,190
  • 11
  • 37
  • 51
  • 8
    Plus .idea files contain personal settings like toolbar layout and build configurations. These things are individual for each developer. – Alexander Oleynikov Mar 19 '11 at 15:17
  • 14
    I disagree. You SHOULD share your build configurations with your peers to make sure you run the same. – nine stones Feb 13 '14 at 18:50
  • 2
    @ninestones, _build configurations_ should NOT use IDE to build the project. However, the question really comes down to _"How much strictly unnecessary yet related stuff should project sources contain for convenience?"_ If one takes a banana, he may not necessarily needs a monkey. And the larger the audience, the bigger the zoo of animals one will see by taking that fruit. – uvsmtid May 20 '19 at 02:52