How to see the changes between two commits without commits in-between?

user146069 picture user146069 · Jul 28, 2009 · Viewed 658.3k times · Source

How do you make git diff only show the difference between two commits, excluding the other commits in-between?

Answer

OneOfOne picture OneOfOne · Jul 28, 2009

you can simply pass the 2 commits to git diff like :

-> git diff 0da94be  59ff30c > my.patch
-> git apply my.patch