title: pre-receive hook - how to get messages of commits
body: <p>How to get messages of commits that are received by server in pre-receive hook using bash?</p>
  
  <p>I've tried to print:  </p>
  
  <pre><code>echo &gt;&amp;2 $1 $2 $3
  </code></pre>
  
  <p>but only I get:  </p>
  
  <pre><code>remote: 62e1ce5353f74f21eafac129dcff0074b2cc7a19 f58a366385ba105ecv1e2f3fbfe99ca60be737c72 refs/heads/master 
  </code></pre>