Git hook to send email notification on repo changes

前端 未结 11 1938
情深已故
情深已故 2020-11-28 01:33

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

11条回答
  •  臣服心动
    2020-11-28 02:09

    I managed to do this, but had to opt for using the contrib script, not the other (perl) script by Alexandre Julliard. It seems fancier and more configurable, but with postfix I had no mail command which would accept "-s"? Here's my way:

    http://pastie.textmate.org/695323

    It would be nice to show some more info, like the full patch, gitweb link and commit graph as well, but this script can only do the first - if I play around with hooks.showrev it seems.

    Anyway, cheers and thanks for the suggestions!

提交回复
热议问题