When I first created my repository many months ago, I was an amateur and committed the files of the libraries I was using into source control because apparently I hadn't learned about .gitignore yet. I eventually realized my mistake, added the line to .gitignore and removed the libraries from the repo.
Everything is fine now, but the Github code frequency graph is now useless because the Y-axis scale is so high due to the amount of code that was checked into the repo that one time.
Is there any way I can essentially remove those commits from Git without affecting the current state of the repo? Or any way that I can tell Github to ignore those commits in the graphs?