'Should the /out folder in an intellij project be added to gitignore?
I have observed the following different files in my intellij java project -
- .idea folder
- .out folder
- .iml file
- .src folder
Out of these files I'm thinking of adding .idea folder, .out folder, .iml file to .gitignore? Am I right? Or do these folders and files hold some significance which needs tracked by git?
Solution 1:[1]
Please see how to handle files in .idea in terms of Git:
Solution 2:[2]
The .out folder can be added to .gitignore, since it is created once the project is built (when you press Run in IntelliJ).
The .iml file and the .idea folder stores information about your project. Do NOT add this to .gitignore, as it is needed when others clone your project and build it themselves.
Source/s:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ruslan Kuleshov |
Solution 2 | Obancium |