How can I get the diff between all the commits that occurred between two dates with Git?

Chris picture Chris · Jul 21, 2009 · Viewed 72.8k times · Source

Or just all the commits that occurred between two dates? In SVN, you could do something like

svn diff -r{date}:{date}

to do it! I can't seem to find a Git equivalent to this.

Specifically I'm looking at writing a script to send out daily emails with all the code committed that day and by who.

Answer

seth picture seth · Jul 21, 2009

You could use git whatchanged --since="1 day ago" -p

It also takes a --until argument.

Docs