简体   繁体   中英

post-receive only works with the user ROOT

production exported only when it executed GIT as ROOT user

my repository is:

/opt/git/xxxxx.git ( my repo is created with the root user )

In my file post-receive:

git --work-tree=/var/www/ --git-dir=/opt/git/xxxxx.git checkout -f

I need that other users can go into production

Thanks!!

it was a permissions problem ... sorry

Sorry boys! The problem is that they change the permissions when I add a user to git.. first apply the permissions, and then create users. then turned to apply permissions chmod -R 777 / var / www and chmod -R 777 / opt / git and everything was solved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM