git log --follow -- README.md

Category: Git - Core

git log --follow -- README.md

Track a file's history across renames

Walks the history of the named file and follows it through renames, so the log reaches back before the file changed name. Without --follow the history stops at the rename point. The double dash tells Git everything after it is a path, not a revision.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.