Git hook to send email notification on repo changes

前端 未结 11 1900
情深已故
情深已故 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:24

    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)

提交回复
热议问题