The git show command can be used to view the changes made to a file at a specific commit. The syntax of git show is:
git show <commit id>:<path to file>
The git log can be used to get the commit id, like this.
afba75a second commit 741785c first commit
The git show command can be used to determine the appropriate path to the file.
git show <commit id> --name-only
Which will return a result such as:
In this example, here is how to view the changes made to example.txt at first commit.
git show 741785c:misc/example.txt
If the output contains the following, this means that the "foo" line was added and the "bar" line was removed.
+ foo - bar