Reputation: 859
There was once a file in our repo that had some content we need to retrieve. There's too many logs to go one by one. So I was thinking we could run a command to list the files that were created and their commit hash. How can you do that?
Then I can just checkout that commit and see the file. Alternatively, if you know how to list what commits had the certain file, that would be even better. The file is foo.md
let's say. Then I could checkout the last commit of that file.
Upvotes: 1
Views: 61