how to see changed files in local commits code example Example: git list all commits that changed a file git log --follow -- filename