Unlike Netbeans, in the Jetbrains IDE, the configuration files associated with the user and the team are mixed in one folder, which makes it difficult when you need to click them on git.
There are a number of git ignore examples for these IDEs and https://intellij-support.jetbrains.com/hc/articles/206544839 pages on the git website.
However, after using them for several months, we find out that it is safer and actually more convenient to do the opposite. I mean ignore all .idea files and explicitly add only the settings related to the command. (instead of adding all and ignoring some).
The main thing that can be shared between developers is the code style configuration. Thus, using the option of automatic reformatting of the IDE, the entire team will adhere to a consistent style.
Also, the question is, which other files are being renewed to be included, were not ignored? What for?
Answer: I came up with this: https://github.com/salarmehr/idea-gitignore
git intellij-idea ignore phpstorm
Phpst
source share