Answer the question
In order to leave comments, you need to log in
Should I keep the .idea directory on github?
I often see recommendations to completely exclude IDE configurations (like .idea/) from repositories.
It's clear that storing it entirely is not the best idea (some files may contain, for example, confidential data), but at the same time, it also contains settings for linters, vcs, integration with the framework, etc. This is extremely convenient - on another machine, you just need to pull the repository and you can continue working. In my opinion - some pluses. On the other hand, can such a situation arise that the employer opens my github and sees .idea and with the words "This fool does not even know how to use .gitignore!" send my resume to the trash?
Answer the question
In order to leave comments, you need to log in
No one will send you to the trash for this, in the end, you can just forget to register this file (personally, this happens to me), but you don’t need to upload it. Not everyone uses the storm, this is the first thing, besides this, your settings didn’t give up on anyone. Many of them will still be overwritten due to different versions of ide, os, paths and a bunch of other things. You are just polluting the repository by adding an extra file there.
Open popular projects on github and see how they do it. At least you will learn about .editorconfig and setup.cfg
On the other hand, can such a situation arise that the employer opens my github and sees .idea and with the words "This fool does not even know how to use .gitignore!" send my resume to the trash?I would not look at .gitignore, but just a toaster, and throw it out with the words "This fool does not know how to find solutions on his own!"
not everyone writes in the idea, so linter settings and so on may not work for other developers, it's better to store linter settings in configuration files in the project and use all sorts of editorconfig, and store them in the root of the repository, IMHO
Keeping .idea is definitely not worth it. At least, because not everyone uses jetbrains products.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question