Ryan Wood

Product Builder, Rubyist, Entrepreneur of sorts
Blog Archives

05 Jun 2009
Git Cherry To The Rescue

I’ve been trying to find a simple way to find out the commit differences in two git branches for while now. I resorted to using git show-branch which works pretty well, but can get cumbersome when you have a lot of branches. I just discovered git cherry is just want I’ve been looking for.

This will show the commit differences between my-dev-branch and master.

$ git checkout my-dev-branch
$ git cherry -v master
+ cf9221200cb9574e3cc92fa72570f9813b86af24 Moved configuration out of lib folder
+ 32c456574cb58a2a8c9b354b5eca56b6f28bab82 Fixed some bugs

I guess It pays to start digging deeper into the underlying git commands.

Blog Archives