git compare file changes history code example
Example 1: git look at changes to a file
$ git log --follow -p -- <file>
Example 2: git diff show only files
git diff --name-only SHA1 SHA2
$ git log --follow -p -- <file>
git diff --name-only SHA1 SHA2