When I started working on one of my Python projects, I forgot to add my venv
virtual environment directory to my .gitignore. Now, my GitHub repository is showing the additions and deletions from that commit and does not give me a good sense of when I made major changes (the venv
directory had 100,000+ lines of code).
I've already updated my .gitignore file and ran git rm --cached .
followed by a git add
, commit
, and push
.
Is there any way to remove the additions and deletions from all previous commits where my venv
directory changed so that GitHub will no longer count these additions/deletions in my commits? I would like to keep the parts of commits that don't include venv
and only get rid of the venv
part of the commit.