Git钩子发送电子邮件通知回购更改 [英] Git hook to send email notification on repo changes

查看:158
本文介绍了Git钩子发送电子邮件通知回购更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在每次将一组更改推送到上游存储库时配置相应的Git挂接以发送摘要电子邮件?

另一种更现代的方式是使用 git-multimail ,如和弦下面。






这是您在2009年做到的。



您可以添加如这个到$ GITDIR / hooks中的post-receive钩子,或者使用源码的contrib目录中的脚本(可在此处)


How do I configure the appropriate Git hook to send a summary email whenever a set of changes is pushed to the upstream repository?

解决方案

Another, more modern way to do this is with git-multimail, as suggested by Chords below.


This is how you did it in 2009.

You could add something like this to your post-receive hook in $GITDIR/hooks, or use the script in the contrib directory of the source (Available here)

这篇关于Git钩子发送电子邮件通知回购更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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