December 20, 2011

gitのpost-receiveでメール送信メモ。

hooksにpost-receiveファイルを作成。

hooks/post-receive
--
xxx/yyy/git-1.7.8/contrib/hooks/post-receive-email
--

送信設定
--
git config hooks.mailinglist "xxx <[to]@gmail.com>,yyy <[to]@gmail.com>"
git config hooks.emailprefix "[git pushed]"
git config hooks.envelopesender "xxx <[from]@gmail.com>"
--

hooksにpost-receive.sampleが無いのは何故だろう。。。

No comments:

Post a Comment