BACKGROUND: webhook to pull with the code. An error
.git/FETCH_HEAD: Permission denied
Analysis: .git / FETCH_HEAD this file belongs to the group and is owned main root privileges, and I use webhook user group is www
Solution: Run in the project directory
cd .git/
chown laofan:laofan FETCH_HEAD
laofan is the user I created, belonging to the group www