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

前端 未结 14 1269
庸人自扰
庸人自扰 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:51

    I get this error, and other strange git errors, when I have a server running (in Intellij). Stopping the server and re-trying the git command frequently fixes it for me.

提交回复
热议问题