A .gitignore file in my .idea folder
Answered
In one of the projects that I contribute to, I noticed that there's a .idea/.gitignore file; The .idea folder is not tracked, so I don't think it was added by someone else. The only conclusion that I can come to is that it was auto-generated by the IDE, but I couldn't find any sources for this online. Is there anyone with more info? Perhaps I'm crazy?
Please sign in to leave a comment.
IDEA auto-generates this file since 2019.2. In that version, the built-in Ignored files list has been deprecated in favor of native ignores. See https://blog.jetbrains.com/idea/2019/07/support-for-vcs-ignores-in-intellij-idea-and-intellij-based-ides/
So the internal can not be used to ignore user-specific files and IntelliJ creates .idea/.gitignore to prevent committing them.
BTW, starting with 2020.1 IntelliJ will also create this file along with project creation.