Refer
Git Commit Hooks