title: Git remote: error- 'remote:error: unable to unlink old 'filename_here' (permission denied)' after git push
body: <p>For about 2 weeks now whenever I did a git push I would get about 200 errors reading this- remote:error: unable to unlink old 'wp-plugins/foobar.php' (Permission denied). But I could still push files to the server- just not any files in the wp-plugins directory.</p>
  
  <p>Today after doing some research into the permission denied error I ran this command: git reset --hard master (from <a href="https://github.com/mxcl/homebrew/issues/2906" rel="nofollow">https://github.com/mxcl/homebrew/issues/2906</a>)</p>
  
  <p>Now every file in my Wordpress directory gives me the remote:error: unable to unlink old 'directory/filename.php' (Permission denied) error (about 2000 of them)! The push seems to go through properly, but when I check the file I tried to push, the local file is changed, but the remote file is still unchanged.</p>
  
  <p>If it is not painfully obvious by now, I am fairly new to Git. Please help. I have to use Git for my new job. As a freelancer I did not need version control, but now this is the only tool I have to update the website, and I can't, and I'm worried.</p>