git diff of one commit before a particular code example
Example 1: git diff two commits one file
$ git diff HEAD^^ HEAD main.c
$ # show diff between HEAD(current commit) and HEAD^^(two commits back) for main.c
Example 2: check diff of a particular commit
git show <COMMIT_HASH>