I have a Git repo with one branch where, over the course of more than a year, thousands of files have gone through a lifecycle where each has been initially added, then modified a number of times, and then finally removed.
I want to retrieve the most recent version of every single file ever to exist in the repo before it was deleted, in order to archive every single one to a separate location. I don't need to restore those old versions in Git, all I need is to dump out the newest version of every single file (respecting its corresponding relative path) to some directory external to the repo.
What would be a good way of accomplishing this?
(The other Q&A's I've seen deal with how to recover single files or subdirectories removed by a single commit or a few commits, not how to do this for thousands of files over thousands of commits.)