天天看點

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 {} \;