I'm trying to figure out why git does not ignore a directory (virtual environment). Before adding and pushing files, I've created a .gitignore file which contains the line: venv/
Then I did:
git add .
git commit
git push -u origin --all
Why is the directory not ignored, and how can I ignore it?

 
     
    