4
You can check git log for all commits of a specific file.
I committed to a foo.txt file and now it no longer shows in git history.
my command:
git log foo.txt
I want to search the all commits records for this file, and then find my commit "lost".
The command to list commits of a file is just that of your question. Are you not in a branch different from where the commit? Or in a commit previous to the one you are looking for?
– Felipe Marinho