Is there a way to list all commits that changed a specific file?
To list all the commits
From the documentation use --follow option to list all commits
git log --follow --filename
You might see some are using a git log path. But that approach is handy if you want to track, but stumbles when files were renamed. So we suggest you use --follow option to follow the file name and list all commits that changed a specific file.