I deleted some files from git and now want them back. I am trying to use git checkout to restore the files.
I looked back through my history, and identified the commit where the files were deleted. When I run git checkout <sha of deleting commit> path/to/my/file, I get
error: pathspec 'path/to/my/file' did not match any file(s) known to git.
What am I doing wrong?