[英]Get email with the diff changes from the last 'git pull'
I want to get an email that will display the last changes made by git. 我想收到一封电子邮件,其中将显示git所做的最后更改。 It should be nicely formatted similar to github ( + are green, - are red).
它的格式应该与github类似(+是绿色,-是红色)。
This is what I have done so far: 到目前为止,这是我所做的:
This way, I get the output of 'git show' to the email every 5 minutes if code is changed within this time. 这样,如果在这段时间内更改了代码,我每隔5分钟就会将“ git show”的输出输出到电子邮件中。
What is missing is as follows: 缺少的内容如下:
I'd appreciate any help here. 我会很感激这里的任何帮助。 Thanks.
谢谢。
git diff --color @{yesterday}
(或者每当完成最后一次拉取/有兴趣的时候)对我来说都很好...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.