Search code examples
gitdiffgit-diffgit-log

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


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.


Solution

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

    It also takes a --until argument.

    Docs