Configuring Git to Send Commit Notices

Explains how to set up Git to automatically notify relevant mailing lists or systems when new commits are pushed to the repository.

Commit emails for MariaDB are sent to commits@lists.mariadb.orgarrow-up-right. You can find the archive herearrow-up-right.

To allow others to see what you are working on in your MariaDB tree:

  1. subscribearrow-up-right to the email list

  2. configure git to send your commits to commits@mariab.orgarrow-up-right.

Download the post-commit git triggerarrow-up-right script. Configure as:

git config --global hooks.postcommitrecipients "commits@mariadb.org"
git config --global hooks.postcommitbranches "*"

Also you might want to check the READMEarrow-up-right for the post-commit trigger.

The post-commit git trigger uses sendmail for sending emails. Some platforms don't have sendmail and then you'll need to modify to make use of something that is supported.

Also, the post-commit trigger is just one approach. You can also use git-email on at least Debian and Fedora to send commit emails to the MariaDB commits email list.

This page is licensed: CC BY-SA / Gnu FDL

spinner

Last updated

Was this helpful?