Git hook to send email notification on repo changes

Head picture Head · Feb 16, 2009 · Viewed 88.8k times · Source

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

Answer

mwalling picture mwalling · Feb 16, 2009

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)