I have a version of a program laying around, let's say "mystery.c
". I use git for this program's development.
I don't know which (if any) commit contains this specific version. For instance, I may have generated this version by copying at some intermediate stage between commits for some reason.
How do I ask git to find the most recent commit containing this file's contents exactly?
Or to say that the file's exact content is not in the history?
Or, more generally, to find the most similar recent match in the history?