Command
git log path filter
Limits displayed history to a path; merge simplification can affect output. --follow traces one path across detected renames with limitations.
Formal Syntax & Structure
git syntaxgit
git log [options] -- pathWorking Example
Example Snippetgit
git log --oneline -- notes.txt