I just encountered the situation exactly as described. Assuming a6704f8d is the interested commit hash. This is what worked out for me (with two dashes):
a6704f8d
git checkout a6704f8d -- path/to/file