windows git 邮件通知
来源:互联网 发布:teamview linux 编辑:程序博客网 时间:2024/05/09 09:17
准备工具
开源mail server
hmail
命令行发邮件的工具
blat
初始化下blat,注意域名的修改blat -install localhost admin@localmail.ddatsh.com
blat -body test -to admin@localmail.ddatsh.com -s "miss you" -u admin -pw adminblat -base64 -charset GB2312 -body 中文 -to admin@localmail.ddatsh.com -s "测试" -debug
建空仓库
git init --bare
设置接收人员
git config hooks.mailinglist "admin@localmail.ddatsh.com "
git config hooks.envelopesender "admin@localmail.ddatsh.com"
本质是
.git\config
[hooks] mailinglist = admin@localmail.ddatsh.com envelopesender = admin@localmail.ddatsh.com emailprefix = "[GIT] " showrev = "git show -C %s; echo"
post-receive.sample
搜索post-receive.sample,打开后内容有post-receive-email,在gitster里有内容COPY过来,改名为post-receive
send_mail(){ if [ -n "$envelopesender" ]; then #sendemail -t admin@localmail.ddatsh.com -f admin@localmail.ddatsh.com -m blat -to admin@localmail.ddatsh.com -s "git" -q #/usr/sbin/sendmail -t -f "$envelopesender"
cmd /c "echo 1 >> init.txt"cmd /c "git add ."cmd /c "git commit -m 1"cmd /c "git push origin master"
To: admin@localmail.ddatsh.comSubject: [GIT] test branch master updated. a63fc11d7c086f719c8d08d36df78c0cf7cbb6bfX-Git-Refname: refs/heads/masterX-Git-Reftype: branchX-Git-Oldrev: 45384097f58cfae3c65a1b43aaa295d11615fdf8X-Git-Newrev: a63fc11d7c086f719c8d08d36df78c0cf7cbb6bfThis is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "test".The branch, master has been updated via a63fc11d7c086f719c8d08d36df78c0cf7cbb6bf (commit) from 45384097f58cfae3c65a1b43aaa295d11615fdf8 (commit)Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.- Log -----------------------------------------------------------------commit a63fc11d7c086f719c8d08d36df78c0cf7cbb6bfAuthor: ddatsh Date: Thu Feb 9 14:17:29 2012 +0800 1diff --git a/init.txt b/init.txtindex 77fe233..eccec7d 100644--- a/init.txt+++ b/init.txt@@ -11,3 +11,4 @@ 1 1 1+1-----------------------------------------------------------------------Summary of changes: init.txt | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)hooks/post-receive-- test
- windows git 邮件通知
- Git 邮件通知设置
- git 配置邮件通知
- Git Update邮件通知设置
- 实现Git提交后自动邮件通知的功能配置
- Jenkins Git Maven搭建自动化部署项目环境 邮件通知
- windows上安装apache+SVN+自动邮件通知
- windows上安装apache2.0.59+SVN+自动邮件通知
- Windows下的SVN安装配置及SVNNotify邮件通知
- windows上安装apache2.0.59+SVN+自动邮件通知
- 在Windows下实现SVN邮件自动通知(转载)
- Windows SVN变化邮件通知(Python2.7实现)
- Windows SVN变更发送邮件通知(JAVA实现)
- git邮件通知,非git原版的post-receive 改进了的
- 处理链报错邮件通知
- redmine 邮件通知设置
- 处理链报错邮件通知
- SVN邮件通知功能
- EncodingFilter
- 【JSF小记】jsf bean中的重定向
- 浏览器兼容性改造之HTML Event
- AM1808开发记录(三)
- AsyncTask使用
- windows git 邮件通知
- TelephonyManager类的方法详解
- Jsp中调用Oracle存储过程的小例子
- 安全进入过入SecurityFilter
- 导入外部数据编辑“OLE DB查询”,有时需要刷新或清空“我的数据源”
- 临界区、互斥量、信号量、事件的区别
- Android提交数据到服务器的两种方式四种方法
- 为什么Cocos2D开源引擎最适合游戏创业团队?
- Java 高级知识