git diff files between last two commits code example
Example 1: git diff of a file between two commits
git diff <branch_hash> <other_branch_hash> -- <file_path>
Example 2: how to compare two commits in git
$ git diff 012345..abcdef
git diff <branch_hash> <other_branch_hash> -- <file_path>
$ git diff 012345..abcdef