how to check difference between two commits in git code example Example: git diff two commits -> git diff 0da94be 59ff30c > my.patch -> git apply my.patch