Git push error: Unable to unlink old (Permission denied)

前端 未结 14 1275
庸人自扰
庸人自扰 2020-11-29 16:32

In the remote server I have a post-receive hook set up in order to make a git checkout of my repository:

#!/bin/sh
GIT_WORK_TREE=/var/www/ git         


        
14条回答
  •  迷失自我
    2020-11-29 16:54

    I think the problem may be with the ownership to the folder so set it to the current user ownership

    sudo chown -R your_login_name /path/to/folder
    
    You can find the solution [here][1]

提交回复
热议问题