list commits in which a file has changed git code example Example: git list all commits that changed a file git log --follow -- filename