Jade's weblog Archive

Setting up git commit emails

We're moving Volunteer Solutions to git this week. One thing that wasn't documented well was how to set up git emails.

There is a git-notify script out there, but in contrib there is post-receive-email.

It's actually easy to set up:

cd .git/hooks
mv post-receive post-receive.bak
ln -s /path/to/post-receive-email post-receive
chmod a+x /path/to/post-receive-email
git config --add hooks.mailinglist "email@address.com"
git config hooks.emailprefix "[scms]"
emacs ../description (make first line short description, then add more later)

Note that the script seemed to only send emails when they were pushed from outside.

02:58 PM, 12 Jun 2008 by Jade Rubick Permalink | Comments (2)

XML

Notifications

You may request notification for Jade's weblog.

Syndication Feed

XML

Recent Comments

  1. Jade Rubick: And... yes and no
  2. Jade Rubick: Using hoptoad
  3. Jade Rubick: Much better
  4. Bodo Tasche: Link changed :)
  5. Bodo Tasche: Better commt emails. Now with color :)
  6. Jade Rubick: Filed a ticket
  7. Vinod Kurup: Wow
  8. Jade Rubick: Then what
  9. Paul Post: Percentages
  10. Paul Post: I might be an ENFJ?