title: Setting up post-receive hook for bare repo
body: <p>I have a bare repo set up in my ubuntu server.</p>
  
  <p>After I push to my bare git repo to the server:</p>
  
  <pre><code>$ git push origin master
  </code></pre>
  
  <p>I want the contents of my non bare repo to be updated with the latest push as shown where the non bare repo is my actual work directory named workfiles.</p>
  
  <pre><code>$ cd /central/workfiles
  $ git pull
  $ exit
  </code></pre>
  
  <p>I have heard about the post-receive hook but do not know how to set up the same.
  How can i achieve the same.</p>