git diff between two last commits code example
Example 1: git diff two commits
-> git diff 0da94be 59ff30c > my.patch
-> git apply my.patch
Example 2: git revert last 2 commits
$ git revert --no-commit D
$ git revert --no-commit C
$ git revert --no-commit B
$ git commit -m "the commit message"