title: Update Apache Server with Git Pull
body: <p>My current set up is as follows:</p>
  <ul>
  <li>I have a laptop in which I like to write my website's code</li>
  <li>I have a raspberry pi running Apache which will serve my website's code as long as it is in <code>/var/www/html</code></li>
  <li>I have clone a repository of my website onto the raspberry pi in Directory A.</li>
  </ul>
  <p>I want to create a git hook so that when I pull my code the code updates in <code>/var/www/html</code></p>
  <p>I have tried creating both a <code>post-merge</code> and <code>post-receive</code> hook using the following code:</p>
  <p><code>#!/bin/bash git --work-tree=/var/www/html --git-dir=DIRECTORY A</code></p>
  <p>But it does not seem to work. Any ideas?</p>