git Comparing Between Commits code example
Example 1: git diff two commits
-> git diff 0da94be 59ff30c > my.patch
-> git apply my.patch
Example 2: how to compare two commits in git
$ git diff 012345..abcdef
-> git diff 0da94be 59ff30c > my.patch
-> git apply my.patch
$ git diff 012345..abcdef