title: Git unable to create file permission denied
body: <p>I am using Amazon EC2 to host a website which is deployed to the server via git. I used this tutorial previously on the same kind of EC2 Ubuntu Linux Server instance, and it has worked flawlessly. However, when  I try and push to the server, I receive the following error trace:</p>
  
  <p>Tutorial: <a href="http://toroid.org/ams/git-website-howto">http://toroid.org/ams/git-website-howto</a></p>
  
  <p>Trace:</p>
  
  <pre><code>$ git push origin master
  
  Counting objects: 5, done.
  Writing objects: 100% (3/3), 250 bytes, done.
  Total 3 (delta 0), reused 0 (delta 0)
  remote: error: unable to create file index.html (Permission denied)
  To ssh://ubuntu@myserv.er/var/www/website.git
     8068aac..04eae11  master -&gt; master
  </code></pre>
  
  <p>I only have one file inside the repository at the moment, which is <code>index.html</code>. </p>
  
  <p>The error trace is showing that the permission is being denied to create the file. Please can you tell me where I am going wrong?</p>