We have a repo that kept some of it's static media files outside of the repo, and one of our juniors was tasked with moving used files into the repo so we could do static file handling. The problem is that he wasn't very diligent and dropped the entire folder into the repo, rather than cherry picking the files we needed.
How can we search for references to the media files, display a list of files that has no reference in history and purge them from the repo completely?