Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5085168
  • 博文数量: 553
  • 博客积分: 13864
  • 博客等级: 上将
  • 技术积分: 11041
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-28 21:25
个人简介

个人Blog: hhktony.com

文章分类

全部博文(553)

文章存档

2015年(1)

2014年(2)

2013年(12)

2012年(384)

2011年(154)

分类: LINUX

2012-10-07 10:59:28

在 .git/hooks/ 里建立文件 post-commit,并赋予可执行权限,拷贝一个声音文件到 .git 中
实现如下:

$ vim .git/hooks/post-commit
$ chmod +x .git/hooks/post-commit # 内容如下
#!/bin/sh
mplayer .git/sound_file > /dev/null 2>&1 &

阅读(2257) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~