git diff two commits

Shell
-> git diff 0da94be  59ff30c > my.patch
-> git apply my.patch
$ git diff 012345..abcdef

Source

Also in Shell: