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