title: Venv, Pycharm, GIT and Github
body: <p>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.</p>
  <p>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.</p>
  <p>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</p>
  <pre><code>/venv/
  /MyProject/venv/
  PycharmProjects/MyProject/venv/
  </code></pre>
  <p>and yet it's still there, and still getting updated.
  I tried removing it at the command line:</p>
  <pre><code>$ git rm -r venv/
  </code></pre>
  <p>and that messed up my environment in Pycharm (even though the actual directory was still present).</p>
  <p>What am I doing wrong - and how do i fix it?</p>
  <p>Many thanks!</p>