天天看点

git error: Unable to append to .git/logs/refs/heads/xxx: Permission denied

在更新的时候

git error: Unable to append to .git/logs/refs/heads/xxx: Permission denied

错误:

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'。

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

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