M
M
mkone1122020-11-16 10:51:44
git
mkone112, 2020-11-16 10:51:44

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

5 answer(s)
A
Alexander, 2020-11-16
@mkone112

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.

D
Dr. Bacon, 2020-11-16
@bacon

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!"

P
Pavel Shvedov, 2020-11-16
@mmmaaak

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

D
Dmitry Roo, 2020-11-16
@xez

Keeping .idea is definitely not worth it. At least, because not everyone uses jetbrains products.

D
Dmitry, 2020-11-28
@dlnsk

6 people answered you and everyone in the comments you wrote that it is convenient for you to store settings on github and you are the only developer ...
Are you sure that it was worth asking this question at all?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question