Ray Ray - 1 month ago 6
Git Question

PyCharm with Git. Shall I ignore the .idea folder?

The question is all in the title. I read about Git integration in PyCharm, and created a Git repository from PyCharm. I did this in PyCharm because I was hoping PyCharm would know whether the

.idea
folder should be ignored, and if that's the case, it would automatically create a
.gitignore
file with the line
.idea/
in it. But it didn't, so I assumed that I shouldn't ignore the
.idea
foler. However, I did a quick search and found someone's example
.gitignore
file, here, which clearly ignores the
.idea
folder. So, my question is, should the
.idea
folder be ignored or not?

I'm NO expert in Git or PyCharm (or any IDE at all)!

Answer

The .idea folder stores local configuration settings for PyCharm so yes you should ignore it.

Comments