-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.gitignore must NOT ignore .idea/ folder #27708
Comments
Personally, I like to ignore `.idea/` in .gitignore. Mostly because I don't expect other developers to use IntelliJ IDEA.
|
Me too, but I was not aware it contains stuff to be shared and I never tried it on any of my teams. |
I think the same, but it doesn't hurt to have it there just in case another user uses IntelliJ. Is just a plus |
The increase in the number of participants at any time and the more personalized content may have negative effects. |
I was trying to share the folder with my work colleges. While the official documentation tell to do so, we found quite a lot of problems in my team with "always changing" files. So I guess my initial idea was a bad idea. I close it for now to further investigate how to properly manage this directory in git. |
Overview of the issue
.gitignore removes .idea from git, but .idea has been designed to be versioned and shared in .git
Only a few files inside .idea/ must not be versioned as explained in:
https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems
NOTE: idea itself add an .idea/.gitignore file, so it is quite safe to just remove .idea from .gitignore.
Motivation for or Use Case
Sharing .idea folder is a "best pattern".
Reproduce the error
Any new project inherits the .gitignore with the extra ".idea" line.
Suggest a Fix
Remove .idea from .gitignore.
JHipster Version(s)
tested in latest version.
JHipster configuration
N/A
Browsers and Operating System
Browser/OS independent.
The text was updated successfully, but these errors were encountered: