Links - kanuku/misc GitHub Wiki
Deploying with git
Guidelines for writing hooks:
- Consume all input (cat >/dev/null if you don't want it).
- If you use any 'cd', also 'unset GIT_DIR'.
- Don't git-pull in a hook (or any other script).
programming in bash
Tutorial with extended examples