This question is extremely similar to this one but with the caveat that I need to remove all previous versions of the file including renamed versions. Basically I'm looking for the solution found here but including the fact that maybe 6 months ago I renamed "Rakefile_test" to "Rakefile" and "Rakefile_test" must be removed from the Git history as well.
To clarify: I do not know which files have been renamed or what their old names were.