I don't want to commit my PyCharm config files (e.g. .idea/codeStyleSettings.xml) to my git repository, so I added the following to my .gitignore file:
However, every time I try to make a commit within PyCharm (command k), it still wants to commit these files. So I tried going to the Version Control node of the Settings dialog box, and updating the Ignored Files. I added both .idea directories above, and then went to commit and still saw the same PyCharm config file there ready to be commited.
So how do I get PyCharm to recognize either my .gitignore file, or the project settings?