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

Question:

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

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:

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

It also takes a --until argument.

Docs

Leave a Reply