Set email notification on Git commits

How do i configure the appropoiate Git hook to send a summary email whenever a set of changes is pushed to the repository?

There is a simplest solution:

  1. Go to one of your repository that you want to setup email notification.
  2. On the right menu,click on Settings,go to repository setting page.
  3. On the left options,click on Webhooks & Services.
  4. In the Services tab,click Add services,from available services,choose Email.
  5. Fill in your email address in field Address.
  6. Check the checkbox Sedn from Author & Active.
  7. Click the Add service button to complete the configuration.
  8. After setting,we can click the Test service button to send the test email.

This is my way to setup email notification. 🙂