How do I configure the appropriate Git hook to send a summary email whenever a set of changes is pushed to the upstream repository?
On GitHub.com, navigate to the main page of the repository. Under your repository name, click Settings. In the "Integrations" section of the sidebar, click Email notifications. Type up to two email addresses, separated by whitespace, where you'd like notifications to be sent.
In the left sidebar, under the list of repositories, use the "Manage notifications" drop-down to click Notification settings. Under "Default notification email", select the email address you'd like notifications sent to.
The pre-receive hook is executed every time somebody uses git push to push commits to the 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)
Here is the simplest solution I've found:
1) Log in to your gitHub account on github.com
2) In the main tab click on Settings
3) From the main navigation choose Service Hooks
4) From Available Hooks choose Email
5) Fill in your email address in field Address
6) Check the checkbox Send from Author
7) Check the checkbox Active
8) Click on Update Settings
Optional: You can click on Test Hook for testing, check your inbox you should receive email.
Also there are images made according to the process:
And now for the grand final I have the answer which is tested and approved at my side.
How to send email to ALL development team members, when gitHub's Service Hooks->Email allows only at most 2 recipients }.
The answer is combination of Service Hook->Email @ GitHub && Google groups
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With