Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I check-in IDE project files to version control system?

For a Java project (with the team of 5-10 developers) should I store my IDE project files (e.g. Eclipse or IntelliJ Idea) in version control system (currently I store only build scripts)? What's the best practice?

PS Do you aware of any tools to automatically generate project files for common Java IDEs according to some descriptor?

like image 458
Alexey Kalmykov Avatar asked May 27 '10 21:05

Alexey Kalmykov


People also ask

Why should IDE configuration files be ignored by source control?

because if this is not well done they will all use the same settings. On the other hand many IDEs have huge amounts of data to store, some of them even store GUI configured unit test cases in project settings. In this case it is of course useful to reuse the files and check it into the version control system.

Should you commit IDE files?

I know this is an unpopular advice but: commit the IDE project files in the repository. Once a member has a successful local setup, the files should be committed so that everyone else can just checkout/update, and get the project running.

How do I add a project to version control in IntelliJ?

IntelliJ IDEA supports a directory-based versioning model, which means that each project directory can be associated with a different version control system. Press Ctrl+Alt+S to open the IDE settings and select Version Control | Directory Mappings.

How do I use version control in IntelliJ?

Version control Use the VCS Operations Popup ( Alt+` ) or VCS | VCS Operations Popup to quickly invoke any VCS-related commands. The list of actions in the popup depends on the currently enabled VCS.


2 Answers

You might want to take a look at the answers to this question: Which eclipse files belong under Version Control. As to the second part, maven has plugins for IntelliJ and Eclipse at least.

like image 148
sblundy Avatar answered Oct 13 '22 22:10

sblundy


If you care about the project file at all, then you should check it into a VCS. Really, you might not care. But if you do, VCS it...

like image 36
Zak Avatar answered Oct 13 '22 23:10

Zak