mv --no-clobber .git/hooks/post-receive .git/hooks/post-receive-make
curl https://gist.githubusercontent.com/sanmai/ef0c2dd609ae72db03af/raw/chained-hook.sh > .git/hooks/post-receive
curl https://raw.githubusercontent.com/chriseldredge/git-slack-hook/master/git-slack-hook > .git/hooks/post-receive-slack
chmod +x .git/hooks/post-receive-* .git/hooks/post-receive
Configuration:
git config hooks.slack.webhook-url 'https://hooks.slack.com/services/...'
git config hooks.slack.repo-nice-name 'My Awesome Repository'
git config hooks.slack.show-only-last-commit false