bobgilmore / githooks

My personal githooks, which help me avoid silly or obvious mistakes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a hook to prevent pushing commits with commit message "foo"

bobgilmore opened this issue · comments

Not certain what kind of hook that is, needs investigating.

To get the commit message for a commit:

git log -1 <hash> --pretty=format:%s

Think we want a pre-push hook. See http://git-scm.com/docs/githooks