Useful hooks for git