How can I diff a file, say pom.xml, from the master branch to an arbitrary older version in Git?
pom.xml
To see what was changed in a file in the last commit:
git diff HEAD~1 path/to/file
You can change the number (~1) to the n-th commit which you want to diff with.