how to look at the history of a file in git code example Example: git look at changes to a file $ git log --follow -p -- <file>