Permissions with Git Post-Receive

后端 未结 1 1100
渐次进展
渐次进展 2021-01-14 13:06

I have setup git locally and on my server and created a \'post-receive\' so that when I do a push to the live server it should then checkout to the virtual hosts directory o

相关标签:
1条回答
  • 2021-01-14 13:45

    If your repo is created with the --shared option (see "Change GIT repository to shared"), that would allow users from the same group to access and write.

    Is there any way you can group those different users in the same group?
    A bit as what is mentioned in "Git unable to create file permission denied" same group.
    Or sudo access, as explained in the comments of this question, changing the sudoers:

     git ALL = (root) NOPASSWD: /usr/local/sbin/prgetsimpleappscom 
    
    0 讨论(0)
提交回复
热议问题