I am merely a hobbyist programmer, but my projects are becoming more complex and so I wanted to use a Version Control System. GIT seemed the obvious choice. I also wanted a more sophisticated IDE - and one that integrated with GIT / Github, so I chose Pycharm.
In my first few test projects all was well. I could commit changes and push them to my GIThub and then pull them from another computer and have a synchronised project.
I understand the benefit of a Virtual Environment (although for my small project it seems unnecessary) but I am a little confused about where Pycharm seems to want to put the files. Moreover, now when I do a push to Github the Venv folder is uploaded too. I can't see why I would want venv in my Github repository (or should I?), so I added it to my .gitignore
/venv/
/MyProject/venv/
PycharmProjects/MyProject/venv/
and yet it's still there, and still getting updated. I tried removing it at the command line:
$ git rm -r venv/
and that messed up my environment in Pycharm (even though the actual directory was still present).
What am I doing wrong - and how do i fix it?
Many thanks!