title: Git stash permission denied on production server
body: <p>I tried to do git stash on my production server using 'deploy' user, but it gives error as </p>
  
  <pre><code>/usr/lib/git-core/git-stash: 440: cannot create /app/app_name/.git/logs/refs/stash: Permission denied
  </code></pre>
  
  <p>The error doesn't show up for 'root' user.</p>
  
  <p>what could be the reason for error and how to resolve it ? </p>