Instructions
- Download gitcam.sh
- Download CommandCam : http://batchloaf.wordpress.com/commandcam/
- Download BMP2JPG : http://www.microtom.net/os-management/convert-bmp-to-jpg-command-line-utility
- Install this as a post-commit hook in your repo
git config --global init.templatedir '~/.git_template'
mkdir -p ~/.git_template/hooks
echo -e '#!/bin/sh\n/PATH/TO/gitcam.sh' >> ~/.git_template/hooks/post-commit
chmod +x ~/.git_template/hooks/post-commit
- Run
git init
in a repo where you want to use the hook!