In my project, I have a README.md file that I haven’t modified in a while.
I’d like to take a look at the last commit that modified it. The git log
command can be used here with few arguments to narrow it down.

This same command will even work for files that have been deleted if you
know the path and name of the file in question. For instance, I used to have
an ideas.md file and I’d like to find the commit that removed it.

Today I Learned is an open-source project by
Hashrocket
that exists to catalogue the sharing & accumulation of knowledge
as it happens day-to-day. Posts have a 200-word limit, and
posting is open to any Rocketeer as well as selected friends of
Hashrocket. We hope you enjoy learning along with us.