I've got a git repository which is a total mess of branches, commits, and stashes.
What I want to do is to search and extract all files containing a given string.
The search should cover all previous versions of all files that ever existed in any shape or form in the repository, and should return the matching files (ideally, they would be extracted and copied to some given path).
Any suggestions? Thanks