title: Could not create work tree dir 'example.com'.: Permission denied
body: <p>I have got a virtual private server with nginx Virtual Hosts setup (Server Blocks).</p>
  
  <p>I've installed Git and got my ssh keys authenticated with GitHub.</p>
  
  <p>I have my website running in</p>
  
  <pre><code> ~/var/www/example.com/public_html/
  </code></pre>
  
  <p>I tried to run:</p>
  
  <pre><code>git clone git@github.com:example/example.co.uk.git
  </code></pre>
  
  <p>to pull my files on GitHub to the /public_html/ directory but I get the error:</p>
  
  <pre><code>fatal: could not create work tree dir 'example.com'.: Permission denied
  </code></pre>
  
  <p>I've followed this tutorial including the same issue he has mentioned on the page, but it still won't work: <a href="http://machiine.com/2013/pulling-a-git-repo-from-github-to-your-ubuntu-server/" rel="noreferrer">http://machiine.com/2013/pulling-a-git-repo-from-github-to-your-ubuntu-server/</a></p>
  
  <p>I'm completely new to this, so your help would be much appreciated!</p>