title: How can I remove a file from a Git repository, including history, and following renames?
body: <p>This question is extremely similar to <a href="https://stackoverflow.com/questions/2730411/git-remove-file-from-the-repository">this one</a> 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 <a href="https://help.github.com/articles/remove-sensitive-data" rel="nofollow noreferrer">found here</a> 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.</p>
  
  <p>To clarify: I do not know which files have been renamed or what their old names were.</p>