Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied
出现原因: 项目是属于一个普通用户的权限, 但是用了root用户操作git pull后 .git/FETCH_HEAD 变成了root的. 而root用户不在git服务授权内.
处理方式: chown -R youruser:yourgroup .git/
Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied
出现原因: 项目是属于一个普通用户的权限, 但是用了root用户操作git pull后 .git/FETCH_HEAD 变成了root的. 而root用户不在git服务授权内.
处理方式: chown -R youruser:yourgroup .git/