I accidentally committed the huge unwanted folder and pushed it to master in git. And i had one more commit after that. so its like this
A - B - C - D
C - is the problematic commit
After realizing the mistake i used the command
git reset --hard <sha1-commit-id-of-B>
and
git push origin HEAD --force
to rollback to the B. It was fine, but the size of the repo is still same. i was confused. how can i get rid of the unwanted files(permanently), so it wont appear on the git?