This is literally impossible, for the simple reason that there is no such thing as "file history" in Git. In Git, the history is simply the set of all commits. If you add commits, you add history. Whatever commits there are, those are the history. And, each commit represents a complete snapshot of all of your files (well, all the files that are in that commit, but that's a bit redundant).
You can ask git log
to show you commits that modify some particular file. The way this works is that git log
traipses along through history—backwards, through each commit, one at a time, in other words—and compares all the files in this commit to all the files in the previous commit. If the one specific file you're curious about has changed, git log
now shows this one commit. Then it moves on—or rather, back—to the previous commit, whether or not it showed this one commit, and shows, or doesn't, that commit using the same rule, and so on.