Does git remove files from version control after they are added to .gitignore?
Try deleting the files from your git repository:
git rm --cached venv*
Rich Stone mentions below, that if venv
is a folder, you should use the recursive switch, -r
:
git rm --cached -r venv*