Im not sure if this question is about server, git or wordpress. i have wordpress set up on ubuntu VPS in /home/user its working now when all chown and group is "user".
however, when i git pull (as user root) it set the files owner and group to root. then they dont work.
so either wordpress should be able to run with files who have root ownership, or somehow the wordpress directory should automatically chown when i pull, possible?