title: How do i restrict commit messages for dev/master branches only
body: <p>I am trying to use GIT hooks to restrict commit message formats (e.g. "<code>must start with #</code>") on my main branches only: dev, master. I do want to allow contributors to have their own custom commit messages on their private branches.</p>
  
  <p>Example: If someone has X commits on their private branch "<code>commit1"...."commitX</code>", can I use hooks to block them from merging to or into <code>dev</code>/<code>master</code> branches telling them that only commits starting with "<code>#</code>" are allowed?</p>