Skip to content

Instantly share code, notes, and snippets.

@shimaore
Created June 12, 2012 19:59
Show Gist options
  • Save shimaore/2919783 to your computer and use it in GitHub Desktop.
Save shimaore/2919783 to your computer and use it in GitHub Desktop.
Allow etckeeper(8) to automatically send notifications on changes.
#!/bin/bash
# Install this file as /etc/.git/hooks/post-commit
# Dependencies: etckeeper git-email
git send-email --from etckeeper --to root --confirm=never --quiet @{1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment