I try to learn [pycharm] as programming tool using it on both Mac and Windows. PyCharm seems to add several .[xml] files and directories to [git] automatically. As I must be doing something wrong I am very aware about avoiding accepting the tracking of those files, but they seem to be added by "themselves".
I managed to do a git reset file and a git rm -r --cached ./* and i've also added a .gitignore to avoid future commits of the unwanted files, but often they arrive in the project directory (by PyCharm) without knowing it so I can't add them to .gitignore in advance.
Why are they added to git in the first place and how do I avoid it.