Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I send git commit emails to multiple recipients?

Tags:

git

email

I am using git's default post-receive-email hook. Is it possible to configure the script to send notifications to multiple emails?

Please note that I do not want to use a mailing list. My project has only 2 developers.

like image 670
Natan Yellin Avatar asked Feb 10 '11 21:02

Natan Yellin


People also ask

What email should I use for Git?

You could use any email address. But, you must have used an email address that is connected with your GitHub account. The email address linked with Github ensures that commits are attributed to you and appear in your contributions graph.


1 Answers

Looking at the script, it appears that the value of git config hooks.mailinglist is used directly in the To: field of the outgoing message. So, simply add more than one email address separated by commas into git config hooks.mailinglist.

like image 114
Greg Hewgill Avatar answered Sep 30 '22 02:09

Greg Hewgill