在更新的时候

错误:
error: Unable to append to .git/logs/refs/heads/develop: Permission denied
fatal: Cannot update the ref 'HEAD'.
Merge made by the 'recursive' strategy.


翻遍:

错误:无法附加到.git/logs/refs/heads/development:权限被拒绝

致命:无法更新ref'HEAD'。

 

解决办法:(具体就看自己的环境)

网站根目录权限遵循:
文件644, 文件夹755 ,权限用户和用户组www
如出现文件权限问题时,请执行下面3条命令:

chown -R www.www /data/wwwroot/
find /data/wwwroot/ -type d -exec chmod 755 {} \;
find /data/wwwroot/ -type f -exec chmod 644 {} \;

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐