I have a single file in a git repo and it contains sensitive information. I've removed this information in the latest commit. Now I want to delete all previous versions of this file from the git repository. How can this be done?
I believe it can be done with git-filter-branch but I haven't come across an example I can wrap my head around yet.