我怎样才能得到两个日期之间发生的所有提交与Git之间的差异? [英] How can I get the diff between all the commits that occurred between two dates with Git?

查看:83
本文介绍了我怎样才能得到两个日期之间发生的所有提交与Git之间的差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

或者只是在两个日期之间发生的所有提交?在SVN中,您可以执行以下操作:

  svn diff -r {date}:{date} 

来做到这一点!我似乎无法找到与此相同的Git。



具体来说,我正在编写一个脚本,用于发送包含当天所有代码的每日电子邮件和你可以使用 git whatchanged --since =1天前-p



它也需要 - 直到参数。



文档


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.

解决方案

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

It also takes a --until argument.

Docs

这篇关于我怎样才能得到两个日期之间发生的所有提交与Git之间的差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆